[Cache] Fix cache types ending on 'cache' are not detected correctly
References #1000
This commit is contained in:
parent
958ba815c7
commit
e3588f62bd
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue