function __cleanupService() { if (isset($_ENV['SOFTHOOKS']['SHUTDOWN'])) { foreach ($_ENV['SOFTHOOKS']['SHUTDOWN'] as $hook) { executeUserParams($hook["FUNC"], $hook["OBJ"]); } } if (function_exists("runHooks")) { runHooks("serviceClose"); } // saveSettings(); // saveSiteSettings(); saveSession(); MetaCache::getInstance()->dumpAllCache(); DataCache::getInstance()->dumpAllCache(); Database::closeAll(); }
function _metaCacheUpdate($group, $srcFile, $data) { $metaCache = MetaCache::getInstance(); return $metaCache->setMetaFor($group, $srcFile, $data); }