Example #1
0
 /**
  * {@inheritdoc}
  */
 public function test($identifier)
 {
     if (!$this->_isEnabled()) {
         return false;
     }
     return parent::test($identifier);
 }
Example #2
0
 /**
  * {@inheritdoc}
  */
 public function test($identifier)
 {
     \Magento\Framework\Profiler::start('cache_test', $this->_getProfilerTags('test'));
     $result = parent::test($identifier);
     \Magento\Framework\Profiler::stop('cache_test');
     return $result;
 }