// Add cache on products stock

This commit is contained in:
rMalie
2011-08-09 14:50:48 +00:00
parent dd41cb98a2
commit f89a713e56
+1 -1
View File
@@ -2114,7 +2114,7 @@ class ProductCore extends ObjectModel
.$context->shop->sqlSharedStock(); .$context->shop->sqlSharedStock();
$this->cacheStock[$id_product_attribute] = (int)Db::getInstance()->getValue($sql); $this->cacheStock[$id_product_attribute] = (int)Db::getInstance()->getValue($sql);
} }
return $this->cacheStock[$id_product_attribute]; return self::$cacheStock[$this->id][$id_product_attribute];
} }
/** /**