[*] CORE : Remove duplicate SQL queries

This commit is contained in:
gRoussac committed 2013-11-11 13:41:23 +01:00
1 parent de404706d9
commit a7869a1f06
22 files changed
+507 -322

No files matched your search

+1 -1
View File
@@ -191,7 +191,7 @@ abstract class ObjectModelCore
if ($id)
{
// Load object from database if object id is present
$cache_id = 'objectmodel_'.$this->def['classname'].'_'.(int)$id.'_'.(int)$id_shop.'_'.(int)$id_lang;
$cache_id = 'objectmodel_'.$this->def['classname'].'_'.(int)$id.'_'.(int)$this->id_shop.'_'.(int)$id_lang;
if (!Cache::isStored($cache_id))
{
$sql = new DbQuery();