nocte
Well-known member
We are trying to get a Redis sentinel setup (1 master, 2 slaves) to work with guest page caching.
We have this addon by @Xon installed:
	
	
		
			
				
					
						 
					
				
			
			
				
					
						
							 xenforo.com
						
					
					xenforo.com
				
			
		
	
My config.php:
	
	
	
		
Another try:
	
	
	
		
But it seems guest page caching does not work with this config: no activity on the redis instance. Are we missing something?
When we tried to move with guest page caching only back to Memached nothing seemed to be cached either. Can 2 Cache providers be mixed?
				
			We have this addon by @Xon installed:
 
					
				Redis Cache By Xon
This add-on uses Credis with a custom cache provider for Redis. For best performance, install the php extension: phpredis  You must have a Redis instance installed, this is likely not possible with shared hosting  While XenForo 2 has a redis...
				 xenforo.com
						
					
					xenforo.com
				My config.php:
		PHP:
	
	$config['cache']['enabled'] = true;
$config['cache']['namespace'] = 'xfredis_';
$config['cache']['provider'] = 'SV\RedisCache\Redis';
$config['cache']['config']['server'] = 'tcp://**.**.**.**:26379,tcp://**.**.**.**:26379,tcp://**.**.**.**:26379';
$config['cache']['config']['sentinel_primary'] = 'mymaster';
$config['cache']['config']['load_from_replicas'] = '2';
$config['cache']['config']['replica_select_callable'] = 'preferLocalReplicaLocalDisk';
$config['pageCache']['enabled'] = true;
$config['pageCache']['lifetime'] = 900;
$config['pageCache']['recordSessionActivity'] = true;
$config['cache']['context']['page']['namespace'] = 'xfredispages_';
$config['cache']['context']['page']['provider'] = 'SV\RedisCache\Redis';
$config['cache']['context']['page']['config'] = [
        'host' => '**.**.**.**',
        'port' => 6379,
        'database' => 1,
        'serializer' => 'igbinary',
];Another try:
		PHP:
	
	$config['cache']['enabled'] = true;
$config['cache']['namespace'] = 'xfredis_';
$config['cache']['provider'] = 'SV\RedisCache\Redis';
$config['cache']['config']['server'] = 'tcp://**.**.**.**:26379,tcp://**.**.**.**:26379,tcp://**.**.**.**:26379';
$config['cache']['config']['sentinel_primary'] = 'mymaster';
$config['cache']['config']['load_from_replicas'] = '2';
$config['cache']['config']['replica_select_callable'] = 'preferLocalReplicaLocalDisk';
$config['pageCache']['enabled'] = true;
$config['pageCache']['lifetime'] = 900;
$config['pageCache']['recordSessionActivity'] = true;
$config['cache']['context']['page']['namespace'] = 'xfredispages_';
$config['cache']['context']['page']['provider'] = 'SV\RedisCache\Redis';
$config['cache']['context']['page']['config']['server'] = 'tcp://**.**.**.**:26379,tcp://**.**.**.**:26379,tcp://**.**.**.**:26379';But it seems guest page caching does not work with this config: no activity on the redis instance. Are we missing something?
When we tried to move with guest page caching only back to Memached nothing seemed to be cached either. Can 2 Cache providers be mixed?

 
 
		 
 
		 
 
		