/** * Manages block storage * * @param string $data Block content to store * @param string $id Cache ID * @param array $tags Tags * @param mixed $lifetime EOL * * @return bool */ protected function _saveCache($data, $id, $tags = array(), $lifetime = null) { if ($this->_saveBlock) { return parent::_saveCache($data, $id, $tags, $lifetime); } return false; }
protected function _saveCache($data, $id, $tags = array(), $lifetime = null) { if ($lifetime === null) { $lifetime = $this->_parseLifetime($this->_getLifetime()); } if ($lifetime !== 'none') { return parent::_saveCache($data, $id, $tags, $lifetime); } return $this; }
protected function _saveCache($data, $id, $tags = array(), $lifetime = 5) { parent::_saveCache($data, $id, $tags, $lifetime); }
/** * Save data to cache storage and set cache lifetime equal with customer session lifetime * * @param string $data * @param string $id * @param array $tags */ protected function _saveCache($data, $id, $tags = array(), $lifetime = null) { $lifetime = Mage::getConfig()->getNode(Mage_Core_Model_Session_Abstract::XML_PATH_COOKIE_LIFETIME); return parent::_saveCache($data, $id, $tags, $lifetime); }