mirror of
https://github.com/moodle/moodle.git
synced 2025-04-16 14:02:32 +02:00
MDL-63127 cachestore_redis: do not return early without unserialisation
This commit is contained in:
parent
3ad56eee9f
commit
4ccbb67474
6
cache/stores/redis/lib.php
vendored
6
cache/stores/redis/lib.php
vendored
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user