MDL-63127 cachestore_redis: do not return early without unserialisation

This commit is contained in:
Mark Nelson
2019-10-07 12:12:48 +01:00
parent 3ad56eee9f
commit 4ccbb67474
+2 -4
View File
@@ -622,11 +622,9 @@ class cachestore_redis extends cache_store implements cache_is_key_aware, cache_
return false;
}
if ($this->compressor == self::COMPRESSOR_NONE) {
return $value;
}
switch ($this->compressor) {
case self::COMPRESSOR_NONE:
break;
case self::COMPRESSOR_PHP_GZIP:
$value = gzdecode($value);
break;