40 parent::__construct($frontend);
41 $this->_cacheState = $cacheState;
42 $this->_identifier = $identifier;
52 return $this->_cacheState->isEnabled($this->_identifier);
58 public function test($identifier)
63 return parent::test($identifier);
69 public function load($identifier)
74 return parent::load($identifier);
80 public function save(
$data, $identifier, array $tags = [], $lifeTime =
null)
85 return parent::save(
$data, $identifier, $tags, $lifeTime);
91 public function remove($identifier)
96 return parent::remove($identifier);
107 return parent::clean(
$mode, $tags);
__construct(\Magento\Framework\Cache\FrontendInterface $frontend, \Magento\Framework\App\Cache\StateInterface $cacheState, $identifier)
if($exist=($block->getProductCollection() && $block->getProductCollection() ->getSize())) $mode
save($data, $identifier, array $tags=[], $lifeTime=null)
clean($mode=\Zend_Cache::CLEANING_MODE_ALL, array $tags=[])