public function getQty($lifeMode = false) { $cacheKey = array(__METHOD__, func_get_args()); if ($this->isCacheEnabled && !is_null($cacheResult = $this->getCache()->getData($cacheKey))) { return $cacheResult; } return $this->getCache()->setData($cacheKey, parent::getQty($lifeMode)); }
public function getQty() { $cacheKey = array(__METHOD__); if ($this->isCacheEnabled && !is_null($cacheResult = $this->getCache()->getData($cacheKey))) { return $cacheResult; } return $this->getCache()->setData($cacheKey, parent::getQty()); }