diff --git a/cache/stores/redis/lib.php b/cache/stores/redis/lib.php index d8282eead75..680066d8c1e 100644 --- a/cache/stores/redis/lib.php +++ b/cache/stores/redis/lib.php @@ -261,10 +261,6 @@ class cachestore_redis extends cache_store implements cache_is_key_aware, cache_ public function get($key) { $value = $this->redis->hGet($this->hash, $key); - if ($this->compressor == self::COMPRESSOR_NONE) { - return $value; - } - return $this->uncompress($value); } @@ -277,10 +273,6 @@ class cachestore_redis extends cache_store implements cache_is_key_aware, cache_ public function get_many($keys) { $values = $this->redis->hMGet($this->hash, $keys); - if ($this->compressor == self::COMPRESSOR_NONE) { - return $values; - } - foreach ($values as &$value) { $value = $this->uncompress($value); }