From 88a80b624b1b78d6e6cff95a3ff5e8e01229d2f8 Mon Sep 17 00:00:00 2001 From: rGaillard Date: Thu, 20 Sep 2012 13:59:29 +0000 Subject: [PATCH] [-] Core: Fix #PSCFV-4212 git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@17440 b9a71923-0436-4b27-9f14-aed3839534dd --- classes/cache/Cache.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/classes/cache/Cache.php b/classes/cache/Cache.php index e9976e185..aa5784950 100755 --- a/classes/cache/Cache.php +++ b/classes/cache/Cache.php @@ -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)) - foreach ($res[1] as $table) + { + $tables = array_merge($res[1], $res[2]); + foreach ($tables as $table) if (isset($this->sql_tables_cached[$table])) { foreach (array_keys($this->sql_tables_cached[$table]) as $fs_key) @@ -280,6 +282,7 @@ abstract class CacheCore } unset($this->sql_tables_cached[$table]); } + } $this->set(self::SQL_TABLES_NAME, $this->sql_tables_cached); }