[Cache] Fix cache types ending on 'cache' are not detected correctly
References #1000
This commit is contained in:
parent
958ba815c7
commit
e3588f62bd
@ -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];
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user