CAppUI::stepAjax("module-system-msg-cache-removal", UI_MSG_OK, $count, $_class);
}
// Remove configuration model
if (!SHM::get("config-model")) {
    CAppUI::stepAjax("ConfigModel-shm-none", UI_MSG_OK);
} else {
    if (!SHM::rem("config-model")) {
        CAppUI::stepAjax("ConfigModel-shm-rem-ko", UI_MSG_WARNING);
    }
    CAppUI::stepAjax("ConfigModel-shm-rem-ok", UI_MSG_OK);
}
// Remove configuration values
if (!SHM::get("config-values-__HOSTS__")) {
    CAppUI::stepAjax("ConfigValues-shm-none", UI_MSG_OK);
} else {
    CConfiguration::clearDataCache();
    CAppUI::stepAjax("ConfigValues-shm-rem-ok", UI_MSG_OK);
}
/////////// CSS cache
$css_files = glob("tmp/*.css");
foreach ($css_files as $_css_file) {
    unlink($_css_file);
}
CAppUI::stepAjax("CSS-cache-ok", UI_MSG_OK, count($css_files));
/////////// JavaScript cache
$js_files = glob("tmp/*.js");
foreach ($js_files as $_js_file) {
    unlink($_js_file);
}
CAppUI::stepAjax("JS-cache-ok", UI_MSG_OK, count($js_files));
////////// Smarty templates
Exemplo n.º 2
0
 /**
  * @see parent::store()
  */
 function store()
 {
     $is_new = !$this->_id;
     if ($msg = parent::store()) {
         return $msg;
     }
     if ($is_new) {
         CConfiguration::clearDataCache();
         if (CModule::getActive("dPprescription")) {
             CConfigService::emptySHM();
             CConfigMomentUnitaire::emptySHM();
         }
     }
     return null;
 }