mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-19 08:12:52 +00:00
chore: correct comments that describe the removed clear push and API cache
The dose tag comment still explained the clear push sent for a logged dose, the session-end wipe comment still named the worker's API cache as a live layer, and the worker's header and foreign-origin note did not match what the worker stores and when it resumes.
This commit is contained in:
1 parent
d15fb27bce
commit
e498a44d70
4 files changed
+14
-23
No files matched your search
@@ -626,10 +626,10 @@ export function useAccountOnceMounted(): AuthUser | null {
|
||||
* former explicit `setQueryData(null)` + `invalidateQueries(["auth"])`.
|
||||
*
|
||||
* Then `clearOfflineCachesForSessionEnd()` wipes the persisted layers — the
|
||||
* IndexedDB query snapshot, the SW offline read-data cache (`healthlog-data-*`),
|
||||
* and the SW page cache (`healthlog-pages-*`, cached navigation HTML). The static
|
||||
* cache (hashed chunks, icons) carries no PII and stays intact to avoid a
|
||||
* needless re-download. Best-effort; never blocks the redirect.
|
||||
* IndexedDB query snapshot, the SW page cache (`healthlog-pages-*`, cached
|
||||
* navigation HTML) and any API cache an older worker left (`healthlog-data-*`).
|
||||
* The static cache (catalogs, icons, fonts, images) carries no PII and stays
|
||||
* intact to avoid a needless re-download. Best-effort; never blocks the redirect.
|
||||
*/
|
||||
export function clearCachesForSessionEnd(queryClient: QueryClient): void {
|
||||
queryClient.clear();
|
||||
|
||||
Reference in new issue
Block a user