aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar logmanoriginal <logmanoriginal@users.noreply.github.com> 2019-02-24 11:56:43 +0100
committerGravatar logmanoriginal <logmanoriginal@users.noreply.github.com> 2019-02-24 11:56:43 +0100
commite3588f62bde583a335b0cfc024b7b7baba35db5c (patch)
tree6890d58a6b26d8da7b98a586e38f567947f39e15
parent958ba815c72c3ade0401702601273cacc07e8127 (diff)
downloadrss-bridge-e3588f62bde583a335b0cfc024b7b7baba35db5c.tar.gz
rss-bridge-e3588f62bde583a335b0cfc024b7b7baba35db5c.tar.zst
rss-bridge-e3588f62bde583a335b0cfc024b7b7baba35db5c.zip
[Cache] Fix cache types ending on 'cache' are not detected correctly
References #1000
-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];
}