Esempio n. 1
0
 protected function ClearCache()
 {
     if (!admClearDir(Config::Get('path.smarty.compiled'))) {
         $this->Message_AddErrorSingle('Unable to remove content of dir <b>' . admFilePath(Config::Get('path.smarty.compiled')) . '</b>. It is recommended to do it manually', $this->Lang_Get('attention'), true);
     }
     if (!admClearDir(Config::Get('path.smarty.cache'))) {
         $this->Message_AddErrorSingle('Unable to remove content of dir <b>' . admFilePath(Config::Get('path.smarty.cache')) . '</b>. It is recommended to do it manually', $this->Lang_Get('attention'), true);
     }
     $result = admClearAllCache();
     return $result;
 }
Esempio n. 2
0
function admClearHeadfilesCache()
{
    $sCacheDir = Config::Get('path.smarty.cache') . "/" . Config::Get('view.skin');
    $result = admClearDir($sCacheDir);
    return $result;
}