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]; }