[Cache] Fix cache types ending on 'cache' are not detected correctly

References #1000
This commit is contained in:
logmanoriginal 2019-02-24 11:56:43 +01:00
parent 958ba815c7
commit e3588f62bd

View file

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