From e3588f62bde583a335b0cfc024b7b7baba35db5c Mon Sep 17 00:00:00 2001 From: logmanoriginal Date: Sun, 24 Feb 2019 11:56:43 +0100 Subject: [PATCH] [Cache] Fix cache types ending on 'cache' are not detected correctly References #1000 --- lib/Cache.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Cache.php b/lib/Cache.php index 6826d4cc..6c2943ad 100644 --- a/lib/Cache.php +++ b/lib/Cache.php @@ -193,7 +193,7 @@ class Cache { } // Trim trailing 'Cache' if exists - if(preg_match('/(.+)(?:Cache)/i', $name, $matches)) { + if(preg_match('/(.+)(?:Cache)$/i', $name, $matches)) { $name = $matches[1]; }