forked from leftypol/leftypol
cache.php: fix redis value decoding
This commit is contained in:
parent
e451faae40
commit
a99f8c5ef3
1 changed files with 2 additions and 1 deletions
|
@ -73,7 +73,8 @@ class Cache {
|
|||
case 'redis':
|
||||
if (!self::$cache)
|
||||
self::init();
|
||||
$data = json_decode(self::$cache->get($key), true);
|
||||
$ret = self::$cache->get($key);
|
||||
$data = $ret !== false ? json_decode($ret, true) : false;
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue