protected function EventSiteResetSubmit() { if (isPost('adm_cache_clear_data')) { $this->Cache_Clean(); } if (isPost('adm_cache_clear_headfiles')) { admClearHeadfilesCache(); } if (isPost('adm_cache_clear_smarty')) { admClearSmartyCache(); } if (isPost('adm_reset_config_data')) { $this->ResetCustomConfig(); } $this->Message('notice', $this->Lang_Get('adm_action_ok')); admHeaderLocation(Router::GetPath('admin') . 'site/reset/'); }
function admClearAllCache() { Engine::getInstance()->Cache_Clean(); $result = admClearSmartyCache() and admClearHeadfilesCache(); return $result; }