From ceb3791aaaf3e193828684a34adbabf23c2e482d Mon Sep 17 00:00:00 2001 From: Bram Suurd <78373894+BramSuurdje@users.noreply.github.com> Date: Tue, 4 Jun 2024 21:09:43 +0200 Subject: [PATCH] Update cache expiry time to 24 hours in page.tsx. --- app/scripts/page.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/scripts/page.tsx b/app/scripts/page.tsx index 45fa5de..d8d56c8 100644 --- a/app/scripts/page.tsx +++ b/app/scripts/page.tsx @@ -77,7 +77,7 @@ export default function Page() { localStorage.setItem("scripts", JSON.stringify(res)); const newCacheTime = new Date().getTime(); localStorage.setItem("cacheTime", String(newCacheTime)); - setCacheExpiryTime(new Date(newCacheTime + 30 * 60 * 1000)); + setCacheExpiryTime(new Date(newCacheTime + 1440 * 60 * 1000)); } setLinks(res as unknown as Category[]);