[-] Add a new option in admin preference to recompile smarty templates only when they are updated

This commit is contained in:
rMalie
2011-08-09 16:25:40 +00:00
parent 17c74058e9
commit 257b8e40cc
6 changed files with 41 additions and 46 deletions
+1 -1
View File
@@ -2112,7 +2112,7 @@ class ProductCore extends ObjectModel
WHERE id_product = '.$this->id.'
AND id_product_attribute = '.(int)$id_product_attribute
.$context->shop->sqlSharedStock();
$this->cacheStock[$id_product_attribute] = (int)Db::getInstance()->getValue($sql);
self::$cacheStock[$this->id][$id_product_attribute] = (int)Db::getInstance()->getValue($sql);
}
return self::$cacheStock[$this->id][$id_product_attribute];
}