Clearing Cache after Code Changes
If the SELV website doesn't reflect recent code changes, clear the cache, any associated offline cached files, and Index DB.
Â
On firefox:
MAC
- From Firefox menu, select Preferences
Click Advanced
Click Network
Click both of the Clear Now buttons
PC - WINDOWS
Tools/Options/Network
2. Delete files in index.db
OS X (10.9):
(From Finder: Go > Go To Folder, or Shift-Apple-K. Enter ~/Library to show hidden Library folder for your user account)
/Users/{USER}/Library/Application Support/Firefox/Profiles/{PROFILE}/indexedDB
or
/Users/{USER}/Library/Application Support/Firefox/Profiles/{CURRENT PROFILE}/storage/persistent/{SITE TO CLEAR}
Â
Â
Windows:
Â
- Close Firefox
- Go to your user's home folder:
- C:\Users\{USER_NAME}
- Show hidden folders if needed
- Goto menu item "Organize" -> Folder and search options
- Click on the View Tab
- Select "Show Hidden Files, Folders and Drives under "Hidden Files and Folders"
- Goto menu item "Organize" -> Folder and search options
- Navigate to AppData\Roaming\Mozilla\Firefox\Profiles\<random name>\IndexedDB\<site name> or AppData\Roaming\Mozilla\Firefox\Profiles\<random name>\Storage\Persistent\IndexDB\<site name>
- For additional details see:Â http://stackoverflow.com/questions/9846013/how-to-view-indexeddb-content-in-firefox
- Open Firefox, Return to SELV
(after following this procedure for PC got a message "your Firefox profile cannot be loaded. It may be missing or inaccessible." Firefox unable to load.)
On Chrome
Â
On upper right click icon with three horizontal orange bars
Selects Tools, Clear Browsing Data
Â
Notes
We are going to need to test upgrade steps for any release.
Changes can't be applied to any previously initiated distributions.
Need to consider several issues:
- What cache clearing actions are required to ensure that distributions can be initiated
- What cache clearing actions are required to ensure that latest code is available for NEWLY initiated distributions
- what cache clearing actions are required to ensure that latest code is available for PREVIOUSLY initiated distributions (or, what steps do field coordinators have to take… delete all distributions? sync all before upgrade)
Â
Testing Notes
 | Firefox | Chrome |
---|---|---|
2/28 Build | Distributions from pre-build were retained Could initiate distribution Data entry forms had old code  Action: Cleared cached web content online (did NOT check Override automatic cache management box. Result: distributions were retained. Still had old code  Action: Cleared cached web content online (DID check Override automatic cache management box. Result: distributions were retained. Still had old code  Action: Cleared cached web content online (DID check Override automatic cache management box) AND cleared offline web content. Result: distributions were retained. Still had old cod  Action: Cleared cached web content online (DID check Override automatic cache management box) AND cleared offline web content AND removed exception for offline data for SELV Result: distributions were retained. Still had old cod  Action: Clear History/Everything/Cache  | Distributions from pre-build were retains Could initiate distribution Data entry forms had old code
Result: distributions from pre-build were gone and latest code was available. Â For testing next time: could i check less boxes and retain distributions while still updating code? |
3/13 | On Windows, after deleting files in the C:\Users\{USER}\AppData\Roaming\Mozilla\Firefox\Profiles\{PROFILE} path, Firefox would not load. Had to uninstall and reinstall firefox. | Â |
 |  |  |
Â
Â