forked from GithubBackups/vichan
cache.php: make it more forgiving to old redis cache config
This commit is contained in:
parent
342558307d
commit
dbc80bc661
@ -20,10 +20,12 @@ class Cache {
|
||||
$config['cache']['memcached']
|
||||
);
|
||||
case 'redis':
|
||||
$port = $config['cache']['redis'][1];
|
||||
$port = empty($port) ? null : intval($port);
|
||||
return new RedisCacheDriver(
|
||||
$config['cache']['prefix'],
|
||||
$config['cache']['redis'][0],
|
||||
$config['cache']['redis'][1],
|
||||
$port,
|
||||
$config['cache']['redis'][2],
|
||||
$config['cache']['redis'][3]
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user