Example #1
0
 /**
  * @return Mage_CatalogInventory_Model_Stock_Item
  * @throws Exception
  */
 public function getStockItem()
 {
     $cacheKey = array(__METHOD__);
     if ($this->isCacheEnabled && !is_null($cacheResult = $this->getCache()->getData($cacheKey))) {
         return $cacheResult;
     }
     return $this->getCache()->setData($cacheKey, parent::getStockItem());
 }