Index: branches/5.1.x/core/units/admin/admin_events_handler.php =================================================================== diff -u -r13935 -r13956 --- branches/5.1.x/core/units/admin/admin_events_handler.php (.../admin_events_handler.php) (revision 13935) +++ branches/5.1.x/core/units/admin/admin_events_handler.php (.../admin_events_handler.php) (revision 13956) @@ -1,6 +1,6 @@ Application->isCachingType(CACHING_TYPE_MEMORY)) { $this->Application->deleteCache('master:config_files'); - $this->Application->deleteCache('master:configs_parsed'); - $this->Application->deleteCache('master:sections_parsed'); } else { $this->Application->deleteDBCache('config_files'); - $this->Application->deleteDBCache('configs_parsed'); - $this->Application->deleteDBCache('sections_parsed'); } + $this->OnResetParsedData($event); + $skin_helper =& $this->Application->recallObject('SkinHelper'); /* @var $skin_helper SkinHelper */ $skin_helper->deleteCompiled(); + } - $event->SetRedirectParam('refresh_tree', 1); + /** + * Resets parsed data from unit configs + * + * @param kEvent $event + */ + function OnResetParsedData(&$event) + { + if ($this->Application->GetVar('ajax') == 'yes') { + $event->status = erSTOP; + } + + $this->Application->UnitConfigReader->ResetParsedData(); + + if ( $this->Application->GetVar('validate_configs') ) { + $event->SetRedirectParam('validate_configs', 1); + } } function OnResetMemcache(&$event)