[-] Core: Local cache could never be totally cleaned

This commit is contained in:
Rémi Gaillard
2013-04-02 15:22:27 +02:00
parent 857de139b0
commit f4eee31bf3
+1 -1
View File
@@ -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)