Update cache expiry time to 24 hours in page.tsx.

This commit is contained in:
Bram Suurd
2024-06-04 21:09:43 +02:00
parent dc92d9b428
commit ceb3791aaa

View File

@@ -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[]);