/** * Retrieve cache frontend instance being decorated * * @return \Magento\Framework\Cache\FrontendInterface */ protected function _getFrontend() { $frontend = parent::_getFrontend(); if (!$frontend) { $frontend = $this->cacheFrontendPool->get(self::TYPE_IDENTIFIER); $this->setFrontend($frontend); } return $frontend; }
/** * Returns a frontend on a first call to frontend interface methods * * @SuppressWarnings(PHPMD.CamelCaseMethodName) * * @return FrontendInterface */ protected function _getFrontend() { // @codingStandardsIgnoreEnd $frontend = parent::_getFrontend(); if ($frontend === null) { $frontend = $this->frontendPool->get(self::CACHE_TYPE); } return $frontend; }