コード例 #1
0
ファイル: Cache.php プロジェクト: technomagegithub/magento
 public function getStockAvailability()
 {
     $cacheKey = array(__METHOD__);
     if ($this->isCacheEnabled && !is_null($cacheResult = $this->getCache()->getData($cacheKey))) {
         return $cacheResult;
     }
     return $this->getCache()->setData($cacheKey, parent::getStockAvailability());
 }