aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/Cache.php2
1 files changed, 1 insertions, 1 deletions
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];
}