cache.php: fix redis value decoding

This commit is contained in:
Zankaria 2024-10-28 13:32:25 +01:00
parent e451faae40
commit a99f8c5ef3

View file

@ -73,7 +73,8 @@ class Cache {
case 'redis': case 'redis':
if (!self::$cache) if (!self::$cache)
self::init(); self::init();
$data = json_decode(self::$cache->get($key), true); $ret = self::$cache->get($key);
$data = $ret !== false ? json_decode($ret, true) : false;
break; break;
} }