protected function ClearCache() { if (!ACE::ClearDir(Config::Get('path.smarty.compiled'))) { $this->Message_AddErrorSingle('Unable to remove content of dir <b>' . ACE::FilePath(Config::Get('path.smarty.compiled')) . '</b>. It is recommended to do it manually', $this->Lang_Get('attention'), true); } if (!ACE::ClearDir(Config::Get('path.smarty.cache'))) { $this->Message_AddErrorSingle('Unable to remove content of dir <b>' . ACE::FilePath(Config::Get('path.smarty.cache')) . '</b>. It is recommended to do it manually', $this->Lang_Get('attention'), true); } $result = ACE::ClearAllCache(); return $result; }
static function ClearHeadfilesCache() { $sCacheDir = Config::Get('path.smarty.cache') . "/" . Config::Get('view.skin'); $result = ACE::ClearDir($sCacheDir); return $result; }