diff --git a/lib/Alchemy/Phrasea/Cache/RedisCache.php b/lib/Alchemy/Phrasea/Cache/RedisCache.php index 32bebef9b9..267e45abbe 100644 --- a/lib/Alchemy/Phrasea/Cache/RedisCache.php +++ b/lib/Alchemy/Phrasea/Cache/RedisCache.php @@ -142,14 +142,11 @@ public function deleteMulti(array $keys) public function removeByPattern($pattern) { - $keysToremove = []; $iterator = null; while(false !== ($keys = $this->_redis->scan($iterator, $pattern))) { - $keysToremove = array_merge($keysToremove, $keys); + $this->_redis->del($keys); } - $this->_redis->del($keysToremove); - return true; }