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