From da47b1d7d3627fa51720b8fd245e68e55e4117de Mon Sep 17 00:00:00 2001 From: MaheshtheDev <38828053+MaheshtheDev@users.noreply.github.com> Date: Sun, 17 May 2026 23:57:34 +0000 Subject: [PATCH] fix(web): bust memory-of-day localStorage cache on deploy (#962) Pairs with the API change that populates sourceDocumentId. The dashboard reads memory-of-day from localStorage first, so without a cache-key bump users would keep seeing the stale null-sourceDocument response for the rest of today. Bumping to :v2: forces a refetch on next load. --- apps/web/app/(app)/page.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/web/app/(app)/page.tsx b/apps/web/app/(app)/page.tsx index f5bb9aeb..9d8e2a64 100644 --- a/apps/web/app/(app)/page.tsx +++ b/apps/web/app/(app)/page.tsx @@ -363,7 +363,7 @@ export default function NewPage() { new Date().toISOString().slice(0, 10), ], queryFn: async (): Promise => { - const cacheKey = `memory-of-day:${user?.id}:${new Date().toISOString().slice(0, 10)}` + const cacheKey = `memory-of-day:v2:${user?.id}:${new Date().toISOString().slice(0, 10)}` try { const stored = localStorage.getItem(cacheKey) if (stored) return JSON.parse(stored) as MemoryOfDay