/** * {@inheritdoc} */ public function test($identifier) { if (!$this->_isEnabled()) { return false; } return parent::test($identifier); }
/** * {@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; }