From 62f6efe3d14b7ac2fe12f09817fd7ec5c0724f75 Mon Sep 17 00:00:00 2001 From: Tizo <88376358+TeamTizo@users.noreply.github.com> Date: Thu, 9 May 2024 12:12:55 +0100 Subject: [PATCH] Update RedisHandler.php deleteMatching wasn't working for Redis cache when a prefix was being used. adding prefix here fixed the issue. --- system/Cache/Handlers/RedisHandler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/Cache/Handlers/RedisHandler.php b/system/Cache/Handlers/RedisHandler.php index 9e1003d10ac2..529932bfca10 100644 --- a/system/Cache/Handlers/RedisHandler.php +++ b/system/Cache/Handlers/RedisHandler.php @@ -180,7 +180,7 @@ public function deleteMatching(string $pattern) do { // Scan for some keys - $keys = $this->redis->scan($iterator, $pattern); + $keys = $this->redis->scan($iterator, $this->prefix.$pattern); // Redis may return empty results, so protect against that if ($keys !== false) {