cache.php: fix redis value decoding

This commit is contained in:
Zankaria 2024-10-28 13:32:25 +01:00
parent 777c3b628a
commit 00d7073c25

View file

@ -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;
}