Changeset View
Changeset View
Standalone View
Standalone View
core/units/admin/admin_events_handler.php
Show First 20 Lines • Show All 137 Lines • ▼ Show 20 Line(s) | |||||
* @access protected | * @access protected | ||||
*/ | */ | ||||
protected function OnResetSections(kEvent $event) | protected function OnResetSections(kEvent $event) | ||||
{ | { | ||||
if ($this->Application->GetVar('ajax') == 'yes') { | if ($this->Application->GetVar('ajax') == 'yes') { | ||||
$event->status = kEvent::erSTOP; | $event->status = kEvent::erSTOP; | ||||
} | } | ||||
$this->Application->DeleteSectionCache(); | |||||
if ($this->Application->isCachingType(CACHING_TYPE_MEMORY)) { | if ($this->Application->isCachingType(CACHING_TYPE_MEMORY)) { | ||||
Lint: CodingStandard.WhiteSpace.ControlStructureSpacing.SpaceBeforeCloseBrace: Expected 1 spaces before "if" closing bracket; 0 found | |||||
Expected 1 spaces after "if" opening bracket; 0 found Lint: CodingStandard.WhiteSpace.ControlStructureSpacing.SpacingAfterOpenBrace: Expected 1 spaces after "if" opening bracket; 0 found | |||||
$this->Application->rebuildCache('master:sections_parsed', kCache::REBUILD_LATER, CacheSettings::$sectionsParsedRebuildTime); | $this->Application->rebuildCache('master:sections_parsed', kCache::REBUILD_LATER, CacheSettings::$sectionsParsedRebuildTime); | ||||
} | } | ||||
else { | else { | ||||
$this->Application->rebuildDBCache('sections_parsed', kCache::REBUILD_LATER, CacheSettings::$sectionsParsedRebuildTime); | $this->Application->rebuildDBCache('sections_parsed', kCache::REBUILD_LATER, CacheSettings::$sectionsParsedRebuildTime); | ||||
} | } | ||||
$event->SetRedirectParam('refresh_tree', 1); | $event->SetRedirectParam('refresh_tree', 1); | ||||
$event->SetRedirectParam('action_completed', 1); | $event->SetRedirectParam('action_completed', 1); | ||||
▲ Show 20 Lines • Show All 1136 Lines • Show Last 20 Lines |
Expected 1 spaces before "if" closing bracket; 0 found