Index: branches/5.2.x/core/units/helpers/deployment_helper.php =================================================================== diff -u -N -r15699 -r15728 --- branches/5.2.x/core/units/helpers/deployment_helper.php (.../deployment_helper.php) (revision 15699) +++ branches/5.2.x/core/units/helpers/deployment_helper.php (.../deployment_helper.php) (revision 15728) @@ -1,6 +1,6 @@ _event = new kEvent('adm:OnDummy'); $this->isCommandLine = isset($GLOBALS['argv']) && count($GLOBALS['argv']); if ( !$this->isCommandLine ) { @@ -99,6 +108,18 @@ } /** + * Sets event, associated with deployment + * + * @param kEvent $event + * @return void + * @access public + */ + public function setEvent(kEvent $event) + { + $this->_event = $event; + } + + /** * Adds message to script execution log * * @param string $message @@ -292,14 +313,19 @@ private function resetCaches() { // 2. reset unit config cache (so new classes get auto-registered) - $this->out('Resetting Unit Config Cache ... '); - $this->Application->HandleEvent(new kEvent('adm:OnResetConfigsCache')); + $this->out('Resetting Configs Files Cache and Parsed System Data ... '); + $this->_event->CallSubEvent('OnResetConfigsCache'); $this->displayStatus('OK'); // 3. reset sections cache - $this->out('Resetting Sections Cache ... '); - $this->Application->HandleEvent(new kEvent('adm:OnResetSections')); + $this->out('Resetting Admin Console Sections ... '); + $this->_event->CallSubEvent('OnResetSections'); $this->displayStatus('OK'); + + // 4. reset mod-rewrite cache + $this->out('Resetting ModRewrite Cache ... '); + $this->_event->CallSubEvent('OnResetModRwCache'); + $this->displayStatus('OK'); } /** @@ -310,8 +336,8 @@ */ private function refreshThemes() { - $this->out('Rebuilding Theme Files ... '); - $this->Application->HandleEvent(new kEvent('adm:OnRebuildThemes')); + $this->out('Refreshing Theme Files ... '); + $this->_event->CallSubEvent('OnRebuildThemes'); $this->displayStatus('OK'); }