[-] Core: Local cache could never be totally cleaned
This commit is contained in:
1 parent
857de139b0
commit
f4eee31bf3
1 file changed
+1
-1
Vendored
+1
-1
@@ -326,7 +326,7 @@ abstract class CacheCore
|
||||
|
||||
public static function clean($key)
|
||||
{
|
||||
if (strpos($key, '*'))
|
||||
if (strpos($key, '*') !== false)
|
||||
{
|
||||
$regexp = str_replace('\\*', '.*', preg_quote($key, '#'));
|
||||
foreach (array_keys(Cache::$local) as $key)
|
||||
|
||||
Reference in new issue
Block a user