CredisException: Template publicAGE_CONTAINER error: Connection to Redis 127.0.0.1:6380 failed after 2 failures.Last Error : (1) Connection refused
$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' => 6,
'read_timeout' => 1,
'timeout' => 1,
'serializer' => 'igbinary',
// 'serializer' => 'php',
);
$config['pageCache']['enabled'] = false;
$config['cache']['enabled'] = true;
$config['cache']['provider'] = 'SV\RedisCache\Redis';
$config['cache']['config'] = array(
'server' => '127.0.0.1',
'port' => 6379,
'database' => 0,
'connect_retries' => 1,
'use_lua' => true,
'compress_data' => 0,
'read_timeout' => 1,
'timeout' => 1,
'serializer' => 'igbinary',
'persistent' => true);
// START CSS caching //
$config['cache']['css'] = true;
$config['cache']['context']['css'] = [
'namespace' => 'sv',
'provider' => 'SV\RedisCache\Redis',
'config' => [
'server' => '127.0.0.1',
'port' => 6379,
'database' => 1,
'connect_retries' => 1,
'use_lua' => true,
'compress_data' => 0,
'read_timeout' => 1,
'timeout' => 1,
'serializer' => 'igbinary',
'persistent' => true,
],
];
// END CSS caching //
// START session caching //
$config['cache']['sessions'] = true;
$config['cache']['context']['sessions'] = [
'namespace' => 'svsess',
'provider' => 'SV\RedisCache\Redis',
'config' => [
'server' => '127.0.0.1',
'port' => 6379,
'database' => 2,
'connect_retries' => 1,
'use_lua' => true,
'compress_data' => 0,
'read_timeout' => 1,
'timeout' => 1,
'serializer' => 'igbinary',
'persistent' => true,
],
];
// END session caching //
// START registry caching //
$config['cache']['registry'] = true;
$config['cache']['context']['registry'] = [
'namespace' => 'svregistry',
'provider' => 'SV\RedisCache\Redis',
'config' => [
'server' => '127.0.0.1',
'port' => 6379,
'database' => 3,
'connect_retries' => 1,
'use_lua' => true,
'compress_data' => 0,
'read_timeout' => 1,
'timeout' => 1,
'serializer' => 'igbinary',
'persistent' => true,
],
];
// END registry caching //
I have pretty solid server ( 32gb memory). this is why i wanted to use the cache system. can u help me in fixing the error which i have pasted in my earlier message.
Hi Redis users, Redis 6 is approaching and will be released 30th of April. New release candidates will be released at the end of March, then another one mid April, to finally reach the GA at the end of April.
Hi @Xon i see you're on v5.0.8 with Redis. Is there a easy way to update the Redis installation? I am actually at 4.0.9 on Ubuntu18.04In the admincp home page ,you'll have a "redis information" chunk;
View attachment 223237
The to/from is only the instance and doesn't include the slaves which I should fix.
We use essential cookies to make this site work, and optional cookies to enhance your experience.