function unloadDataProvider() { global $CM; if (!empty($CM) && !is("SERVERSETUP")) { $CM->Close(); } DBManager::Close(); }
static function UnloadDataProvider() { if (!empty(CacheManager::$ActiveManager) && !Is::Defined("SERVERSETUP")) { CacheManager::$ActiveManager->Close(); } DBManager::Close(); }