From f89a713e56bbefd9bfec927d98c1eabd4ce8a242 Mon Sep 17 00:00:00 2001 From: rMalie Date: Tue, 9 Aug 2011 14:50:48 +0000 Subject: [PATCH] // Add cache on products stock --- classes/Product.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/Product.php b/classes/Product.php index 1f34ff209..966b3894c 100644 --- a/classes/Product.php +++ b/classes/Product.php @@ -2114,7 +2114,7 @@ class ProductCore extends ObjectModel .$context->shop->sqlSharedStock(); $this->cacheStock[$id_product_attribute] = (int)Db::getInstance()->getValue($sql); } - return $this->cacheStock[$id_product_attribute]; + return self::$cacheStock[$this->id][$id_product_attribute]; } /**