Bug Description
Clicking "Clear All" in Settings doesn't fully clear the cache. After clearing and reloading the page, the previous org analysis shows up again without any new API calls.
The Settings page says "Clearing forces fresh API calls on the next explore", but that's not what happens right now.
Looking at IndexedDB, there are two caches:
orgexplorer_cache → cache (raw API responses)
orgexplorer → analysis (the saved analysis, key "latest")
Clear All only empties the first one. handleClear in SettingsPage.jsx calls cacheClear() from github.js, but clearAnalysis() in src/services/cache.js isn't called anywhere. On reload, loadAnalysis() in AppContext.jsx picks up the leftover "latest" entry and restores everything.
Possible fix: import clearAnalysis in SettingsPage.jsx and call it together with cacheClear() in handleClear.
Steps to Reproduce
- Explore an org (I used
AOSSIE-Org) and let the analysis load.
- Go to Settings → Data Cache and click Clear All.
- Open DevTools → Application → IndexedDB and refresh both stores:
orgexplorer_cache/cache → 0 entries
orgexplorer/analysis → still has "latest"
- Open DevTools → Network, filter by
api.github.com, go to Overview and reload.
- The old analysis is shown again, with 0 requests to
api.github.com, and the rate limit counter doesn't change.
Expected: Clear All clears both caches, so the next load fetches fresh data.
Logs and Screenshots
Before clearing: cache store has 12 entries
After Clear All: cache store is empty
After Clear All: analysis store still has "latest"
After reload: old analysis restored, 0 / 124 requests to api.github.com, quota unchanged (51/60)
Environment Details
- Upstream
main at 42f1ef9
- Microsoft Edge on Windows 11
- Local dev server (
npm run dev)
- Standard Analysis (no PAT)
Impact
Medium - Feature works but has issues
Code of Conduct
Bug Description
Clicking "Clear All" in Settings doesn't fully clear the cache. After clearing and reloading the page, the previous org analysis shows up again without any new API calls.
The Settings page says "Clearing forces fresh API calls on the next explore", but that's not what happens right now.
Looking at IndexedDB, there are two caches:
orgexplorer_cache→cache(raw API responses)orgexplorer→analysis(the saved analysis, key"latest")Clear All only empties the first one.
handleClearinSettingsPage.jsxcallscacheClear()fromgithub.js, butclearAnalysis()insrc/services/cache.jsisn't called anywhere. On reload,loadAnalysis()inAppContext.jsxpicks up the leftover"latest"entry and restores everything.Possible fix: import
clearAnalysisinSettingsPage.jsxand call it together withcacheClear()inhandleClear.Steps to Reproduce
AOSSIE-Org) and let the analysis load.orgexplorer_cache/cache→ 0 entriesorgexplorer/analysis→ still has"latest"api.github.com, go to Overview and reload.api.github.com, and the rate limit counter doesn't change.Expected: Clear All clears both caches, so the next load fetches fresh data.
Logs and Screenshots
Before clearing:
cachestore has 12 entriesAfter Clear All:
cachestore is emptyAfter Clear All:
analysisstore still has"latest"After reload: old analysis restored, 0 / 124 requests to
api.github.com, quota unchanged (51/60)Environment Details
mainat42f1ef9npm run dev)Impact
Medium - Feature works but has issues
Code of Conduct