XF 2.1 Session cache to redis and mysql restart

Nuno

Well-known member
Hi

I have $config['cache']['sessions'] = true; in my config.php and I use Xon's redis cache.
Today when restarting mysql all users online have gone from the sidebar widget.
Stupid question, shouldn't sessions survival to a mysql restart if they are cached in redis?

Both xf_session_activity and xf_session tables have data.

Code:
// Session Cache
$config['cache']['sessions'] = true;

// Default cache
$config['cache']['enabled'] = true;
$config['cache']['namespace'] = 'xf';
$config['cache']['provider'] = 'SV\RedisCache\Redis';
$config['cache']['config'] = [
    'host' => 'localhost',
    'port' => 6379,
    'database' => 0,
    'compress_data' => 4,
    'serializer' => 'igbinary',
    'use_lua' => true,
    'persistent' => true
];
 
Top Bottom