MDL-63127 cachestore_redis: do not return early without unserialisation

This commit is contained in:
Mark Nelson 2019-09-14 19:55:40 +02:00
parent 3ad56eee9f
commit 4ccbb67474

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;