Ejemplo n.º 1
0
 /**
  * Initialize active modules configuration and data
  *
  * @return Mage_Core_Model_App
  */
 protected function _initModules()
 {
     // If cache locking is enabled then use that
     if ((bool) (string) $this->_config->getNode(self::XML_PATH_CACHE_LOCK_ENABLE) === true) {
         return $this->_initModulesWithLocking();
     }
     if (!$this->_config->loadModulesCache()) {
         $this->_config->loadModules();
         if ($this->_config->isLocalConfigLoaded() && !$this->_shouldSkipProcessModulesUpdates()) {
             Varien_Profiler::start('mage::app::init::apply_db_schema_updates');
             Mage_Core_Model_Resource_Setup::applyAllUpdates();
             Varien_Profiler::stop('mage::app::init::apply_db_schema_updates');
         }
         $this->_config->loadDb();
         $this->_config->saveCache();
     }
     return $this;
 }
 /**
  * Initialize active modules configuration and data
  *
  * @return Mage_Core_Model_App
  */
 protected function _initModules()
 {
     if (!$this->_config->loadModulesCache()) {
         $this->_config->loadModules();
         if ($this->_config->isLocalConfigLoaded() && !$this->_shouldSkipProcessModulesUpdates()) {
             Varien_Profiler::start('mage::app::init::apply_db_schema_updates');
             Mage_Core_Model_Resource_Setup::applyAllUpdates();
             Varien_Profiler::stop('mage::app::init::apply_db_schema_updates');
         }
         $this->_config->loadDb();
         $this->_config->saveCache();
     }
     return $this;
 }
Ejemplo n.º 3
0
 /**
  * Initialize active modules configuration and data
  *
  * @return Mage_Core_Model_App
  */
 protected function _initModules()
 {
     if (get_class($this->_config) === 'Made_Cache_Model_Config') {
         $backend = Mage::app()->getCacheInstance()->getFrontend()->getBackend();
         if (get_class($backend) === 'Made_Cache_Redis_Backend') {
             return $this->_initModulesSafe();
         }
     }
     if (!$this->_config->loadModulesCache()) {
         $this->_config->loadModules();
         if ($this->_config->isLocalConfigLoaded() && !$this->_shouldSkipProcessModulesUpdates()) {
             Varien_Profiler::start('mage::app::init::apply_db_schema_updates');
             Mage_Core_Model_Resource_Setup::applyAllUpdates();
             Varien_Profiler::stop('mage::app::init::apply_db_schema_updates');
         }
         $this->_config->loadDb();
         $this->_config->saveCache();
     }
     return $this;
 }