Index: lams_central/web/lams_authoring.swf =================================================================== diff -u -r5465f7ebcb614a556129af6af484aa6ba321557d -r6975fa9e790e0853380e212b22fb96160da20d30 Binary files differ Index: lams_central/web/lams_authoring_library.swf =================================================================== diff -u -r5465f7ebcb614a556129af6af484aa6ba321557d -r6975fa9e790e0853380e212b22fb96160da20d30 Binary files differ Index: lams_common/src/flash/org/lamsfoundation/lams/common/Config.as =================================================================== diff -u -r03edc31fa89b65b81c3b533b4cdfb16253a8c0bb -r6975fa9e790e0853380e212b22fb96160da20d30 --- lams_common/src/flash/org/lamsfoundation/lams/common/Config.as (.../Config.as) (revision 03edc31fa89b65b81c3b533b4cdfb16253a8c0bb) +++ lams_common/src/flash/org/lamsfoundation/lams/common/Config.as (.../Config.as) (revision 6975fa9e790e0853380e212b22fb96160da20d30) @@ -78,7 +78,7 @@ private var _build:String; - private var removeCache:Boolean = false; + private var _removeCache:Boolean = false; //These are defined so that the compiler can 'see' the events that are added at runtime by EventDispatcher private var dispatchEvent:Function; @@ -434,4 +434,12 @@ public function get mode ():Number { return _mode; } + + public function get removeCache():Boolean { + return _removeCache; + } + + public function set removeCache(b:Boolean) { + _removeCache = b; + } } \ No newline at end of file Index: lams_common/src/flash/org/lamsfoundation/lams/common/dict/Dictionary.as =================================================================== diff -u -ra75e72e708fca84f14d1d3ff40eb60689a152474 -r6975fa9e790e0853380e212b22fb96160da20d30 --- lams_common/src/flash/org/lamsfoundation/lams/common/dict/Dictionary.as (.../Dictionary.as) (revision a75e72e708fca84f14d1d3ff40eb60689a152474) +++ lams_common/src/flash/org/lamsfoundation/lams/common/dict/Dictionary.as (.../Dictionary.as) (revision 6975fa9e790e0853380e212b22fb96160da20d30) @@ -93,15 +93,20 @@ _oldDateCookie = CookieMonster.open(DICT_DATE, true); } - Debugger.log('Existing date:'+String(_oldDate) + ' Current date:' + String(_currentDate),Debugger.GEN,'load','org.lamsfoundation.lams.dict.Dictionary'); + Debugger.log('Existing date:'+String(_oldDateCookie.date) + ' Current date:' + String(_currentDate),Debugger.GEN,'load','org.lamsfoundation.lams.dict.Dictionary'); // determine if dictionary should be loaded from cookie file or from server request if(CookieMonster.cookieExists(DICT_PREFIX+language+SO_SEPARATOR+app.module) && Config.USE_CACHE && _oldDateCookie.date != null) { // clear all data if dictionaries have been updated if(this._currentDate != _oldDateCookie.date){ + Debugger.log('Removing all dictionary cookies (updated date).',Debugger.GEN,'load','org.lamsfoundation.lams.dict.Dictionary'); clearAll(_oldDateCookie); openFromServer(); + } else if(Config.getInstance().removeCache) { + Debugger.log('Removing all dictionary cookies (clear cache)',Debugger.GEN,'load','org.lamsfoundation.lams.dict.Dictionary'); + clearAll(_oldDateCookie); + openFromServer(); } else { openFromDisk(); } Index: lams_learning/web/lams_learner.swf =================================================================== diff -u -ra75e72e708fca84f14d1d3ff40eb60689a152474 -r6975fa9e790e0853380e212b22fb96160da20d30 Binary files differ Index: lams_monitoring/web/lams_monitoring.swf =================================================================== diff -u -ra75e72e708fca84f14d1d3ff40eb60689a152474 -r6975fa9e790e0853380e212b22fb96160da20d30 Binary files differ Index: lams_monitoring/web/lams_monitoring_library.swf =================================================================== diff -u -ra75e72e708fca84f14d1d3ff40eb60689a152474 -r6975fa9e790e0853380e212b22fb96160da20d30 Binary files differ Index: lams_monitoring/web/lams_wizard.swf =================================================================== diff -u -ra75e72e708fca84f14d1d3ff40eb60689a152474 -r6975fa9e790e0853380e212b22fb96160da20d30 Binary files differ Index: lams_monitoring/web/lams_wizard_library.swf =================================================================== diff -u -ra75e72e708fca84f14d1d3ff40eb60689a152474 -r6975fa9e790e0853380e212b22fb96160da20d30 Binary files differ