From 4ccbb67474fb7aa0a0c8dba9739c40d16f45bf42 Mon Sep 17 00:00:00 2001 From: Mark Nelson Date: Sat, 14 Sep 2019 19:55:40 +0200 Subject: [PATCH] MDL-63127 cachestore_redis: do not return early without unserialisation --- cache/stores/redis/lib.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/cache/stores/redis/lib.php b/cache/stores/redis/lib.php index 1a95081ce48..24016a53e6e 100644 --- a/cache/stores/redis/lib.php +++ b/cache/stores/redis/lib.php @@ -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;