• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.1 Cannot cache sessions with Libmemcached

Floren

Well-known member
#1
Hi,

I was wondering what is the proper configuration for Libmemcached. Right now everything works proper, except that I cannot cache the sessions. This is what I have setup as options, in one of my development servers:
Code:
$config['cache']['enabled'] = true;
$config['cache']['cacheSessions'] = true;
$config['cache']['frontend'] = 'Core';
$config['cache']['frontendOptions'] = array(
	'caching'			=> true,
	'cache_id_prefix'		=> 'xf_',
	'automatic_serialization'	=> true,
	'lifetime'			=> 0
);
$config['cache']['backend'] = 'Libmemcached';
$config['cache']['backendOptions'] = array(
	'servers'	=> array(
		array(
			'host'		=> '127.0.0.1',
			'port'		=> 11211,
			'weight'	=> 1
		)
	)
);
Thanks for your help.
 

Floren

Well-known member
#2
Any of the mods can test it in their environment and confirn that this is not a bug? Thanks.
If you miss the rpm's, you can get them from Axivo.

Edit: I got it working, thanks guys. Libmemcached is much more robust, compared to Memcached.
 

Jake Bunce

XenForo moderator
Staff member
#4
Generally that means your cache is not healthy. For example, if the cache is too small such that it keeps getting full then that will cause login problems if you store session records in that cache. You need to check the status of your cache to make sure it's healthy.
 

Fred.

Well-known member
#5
@Floren I have the same problem now.
Can you give me a hint? :D Not sure why it's not working.
I doubled my cache to 256MB and that should be more than enough for my small forum. But that doesn't fix the problem.

If I disable
Code:
$config['cache']['cacheSessions'] = true;
It's working perfect.