// START Redis configuration //
// Global Cache
$config['cache']['enabled'] = true;
$config['cache']['sessions'] = true;
$config['cache']['namespace'] = 'xfredis_';
$config['cache']['provider'] = 'SV\RedisCache\Redis';
$config['cache']['config'] = array(
'server' => '127.0.0.1',
'port' => 6379,
'connect_retries' => 2,
'use_lua' => true,
'compress_data' => 2,
'serializer' => 'igbinary',
// 'password' => 'password',
'read_timeout' => 1,
'timeout' => 1,
'persistent' => true,
'persistent_id' => 'global'
);
// Guest Page Cache
$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'] = array(
'server' => '127.0.0.1',
'port' => 6480,
'connect_retries' => 2,
'use_lua' => true,
'compress_data' => 6,
'serializer' => 'igbinary',
'timeout' => 1,
'persistent' => true,
'persistent_id' => 'pages'
);
// css cache
// $config['css']['enabled'] = true;
//$config['cache']['context']['css']['provider'] = 'Redis';
//$config['cache']['context']['css']['config'] = array(
// 'server' => '127.0.0.1',
// 'port' => 6481,
// 'connect_retries' => 2,
// 'use_lua' => true,
// 'compress_data' => 6,
// 'serializer' => 'igbinary',
// 'timeout' => 1,
// 'persistent' => true,
// 'persistent_id' => 'css'
//);
// END Redis configuration //