CRM_Core_BAO_Navigation::resetNavigation();
// Clear js string cache
CRM_Core_Resources::singleton()->flushStrings();
+ // Clear dynamic js files which may contain localization
+ CRM_Utils_File::flushDynamicResources();
return TRUE;
}
// also rebuild word replacement cache
CRM_Core_BAO_WordReplacement::rebuild();
+ // Clear dynamic js files
+ CRM_Utils_File::flushDynamicResources();
+
CRM_Core_BAO_Setting::updateSettingsFromMetaData();
CRM_Core_Resources::singleton()->resetCacheCode();
CRM_Case_XMLRepository::singleton(TRUE);
}
/**
- * Flush the dynamic resource directory
+ * Delete all files from the dynamic resource directory
*/
static function flushDynamicResources() {
$files = glob(self::dynamicResourcePath('*'));