Beispiel #1
0
 /**
  * Disable some cache types in VDE mode
  *
  * @return void
  */
 protected function _disableCache()
 {
     foreach ($this->_dataHelper->getDisabledCacheTypes() as $cacheCode) {
         if ($this->_cacheState->isEnabled($cacheCode)) {
             $this->_cacheState->setEnabled($cacheCode, false);
         }
     }
 }
Beispiel #2
0
 public function testGetDisabledCacheTypes()
 {
     $this->_model = new \Magento\DesignEditor\Helper\Data($this->_context, self::TEST_FRONT_NAME, ['type1', 'type2']);
     $this->assertEquals($this->_disabledCacheTypes, $this->_model->getDisabledCacheTypes());
 }