From f081ee4ff0d53c8dcd8b199032ed1b9959607c0e Mon Sep 17 00:00:00 2001 From: rGaillard Date: Thu, 20 Sep 2012 13:59:29 +0000 Subject: [PATCH] [-] Core: Fix #PSCFV-4212 --- 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); }