/** * {@inheritdoc} */ public function save($data, $identifier, array $tags = [], $lifeTime = null) { if (!$this->_isEnabled()) { return true; } return parent::save($data, $identifier, $tags, $lifeTime); }
/** * Enforce marking with a tag * * {@inheritdoc} */ public function save($data, $identifier, array $tags = [], $lifeTime = null) { \Magento\Framework\Profiler::start('cache_save', $this->_getProfilerTags('save')); $result = parent::save($data, $identifier, $tags, $lifeTime); \Magento\Framework\Profiler::stop('cache_save'); return $result; }
/** * Enforce marking with a tag * * {@inheritdoc} */ public function save($data, $identifier, array $tags = array(), $lifeTime = null) { $tags[] = $this->_tag; return parent::save($data, $identifier, $tags, $lifeTime); }
/** * Enforce marking with a tag * * {@inheritdoc} */ public function save($data, $identifier, array $tags = [], $lifeTime = null) { $tags[] = $this->getTag(); return parent::save($data, $identifier, $tags, $lifeTime); }