// Add cache on products stock
This commit is contained in:
1 parent
dd41cb98a2
commit
f89a713e56
1 file changed
+1
-1
+1
-1
@@ -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];
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user