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

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@7976 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
rMalie
2011-08-09 16:25:40 +00:00
parent d61637c5e5
commit 671162a5f5
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];
}