Пример #1
0
*/
//Update the license
logThis('Start Updating the license ', $path);
ob_start();
check_now(get_sugarbeat());
ob_end_clean();
logThis('End Updating the license ', $path);
set_upgrade_progress('end', 'done');
logThis('Cleaning up the session.  Goodbye.');
unlinkUWTempFiles();
logThis('Cleaning up the session.  Goodbye.');
resetUwSession();
// flag to say upgrade has completed
$_SESSION['upgrade_complete'] = true;
//Clear any third party caches
sugar_cache_reset_full();
//add the clean vardefs here
if (!class_exists('VardefManager')) {
}
VardefManager::clearVardef();
require_once 'include/TemplateHandler/TemplateHandler.php';
TemplateHandler::clearAll();
//also add the cache cleaning here.
if (function_exists('deleteCache')) {
    deleteCache();
}
global $mod_strings;
global $current_language;
if (!isset($current_language) || $current_language == null) {
    $current_language = 'en_us';
}
Пример #2
0
 /**
  * Clears the js cache and rebuilds the language files
  *
  * @param string $lang - language to be rebuilt, and cache cleared
  */
 public function finalize($lang)
 {
     $mi = new ModuleInstaller();
     $mi->silent = true;
     $mi->rebuild_languages(array($lang => $lang));
     sugar_cache_reset();
     sugar_cache_reset_full();
     clearAllJsAndJsLangFilesWithoutOutput();
     // Clear out the api metadata languages cache for selected language
     MetaDataManager::refreshLanguagesCache($lang);
 }