[-] Core: Fix cache issue and order slip pdf generation

This commit is contained in:
rGaillard
2012-10-22 12:40:15 +00:00
parent eeb82533d8
commit fc19914c85
13 changed files with 96 additions and 37 deletions
+2 -2
View File
@@ -210,8 +210,8 @@ abstract class ObjectModelCore
// Get shop informations
if (Shop::isTableAssociated($this->def['table']))
$sql->leftJoin($this->def['table'].'_shop', 'c', 'a.'.$this->def['primary'].' = c.'.$this->def['primary'].' AND c.id_shop = '.(int)$this->id_shop);
Cache::store($cache_id, ObjectModel::$db->getRow($sql));
if ($row = ObjectModel::$db->getRow($sql))
Cache::store($cache_id, $row);
}
$result = Cache::retrieve($cache_id);