I am trying to move away from file cache and use redis instead. I can get it working using the same redis database for cache and sessions but this means I cannot clear the application cache without losing all sessions so I am wanting to run the two on different databases on the same server. My configs are as follows:
database.php
'redis' => array(
'cluster' => false,
'default' => array('host' => 'redisserverip', 'port' => 6379, 'database' => 0),
'session' => array('host' => 'redisserverip', 'port' => 6379, 'database' => 1),
),
cache.php
'driver' => 'redis',
'connection' => null,
session.php
'driver' => 'redis',
'connection' => 'session',
This is not working as both the application cache and sessions are being saved into the 1st database when it should be shared accross the 0th and 1st database. Is this a bug in Laravel or a problem with my config?
Advertisements