[-] Core: Fix #PSCFV-4212
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@17440 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
1 parent
22bc313e76
commit
88a80b624b
1 file changed
+4
-1
Vendored
+4
-1
@@ -270,7 +270,9 @@ abstract class CacheCore
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (preg_match_all('/(?:from|join|update|into)\s+`?('._DB_PREFIX_.'[a-z_-]+)`?(?:,\s{0,}`?('._DB_PREFIX_.'[a-z_-]+)`?)?\s.*/Umsi', $query, $res))
|
if (preg_match_all('/(?:from|join|update|into)\s+`?('._DB_PREFIX_.'[a-z_-]+)`?(?:,\s{0,}`?('._DB_PREFIX_.'[a-z_-]+)`?)?\s.*/Umsi', $query, $res))
|
||||||
foreach ($res[1] as $table)
|
{
|
||||||
|
$tables = array_merge($res[1], $res[2]);
|
||||||
|
foreach ($tables as $table)
|
||||||
if (isset($this->sql_tables_cached[$table]))
|
if (isset($this->sql_tables_cached[$table]))
|
||||||
{
|
{
|
||||||
foreach (array_keys($this->sql_tables_cached[$table]) as $fs_key)
|
foreach (array_keys($this->sql_tables_cached[$table]) as $fs_key)
|
||||||
@@ -280,6 +282,7 @@ abstract class CacheCore
|
|||||||
}
|
}
|
||||||
unset($this->sql_tables_cached[$table]);
|
unset($this->sql_tables_cached[$table]);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
$this->set(self::SQL_TABLES_NAME, $this->sql_tables_cached);
|
$this->set(self::SQL_TABLES_NAME, $this->sql_tables_cached);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user