Ejemplo n.º 1
0
 /**
  * {@inheritdoc}
  */
 public function save($data, $identifier, array $tags = [], $lifeTime = null)
 {
     if (!$this->_isEnabled()) {
         return true;
     }
     return parent::save($data, $identifier, $tags, $lifeTime);
 }
Ejemplo n.º 2
0
 /**
  * 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;
 }
Ejemplo n.º 3
0
 /**
  * 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);
 }
Ejemplo n.º 4
0
 /**
  * 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);
 }