From 6505c8963a37b95baab677ceefea58ef42d19dbf Mon Sep 17 00:00:00 2001 From: viet nguyen <3805254+vnugent@users.noreply.github.com> Date: Fri, 26 Apr 2024 16:45:20 +0200 Subject: [PATCH] test shorter page cache --- src/app/(default)/area/[[...slug]]/page.tsx | 2 +- src/app/(default)/page.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/(default)/area/[[...slug]]/page.tsx b/src/app/(default)/area/[[...slug]]/page.tsx index 4ac5433ba..3a7c30586 100644 --- a/src/app/(default)/area/[[...slug]]/page.tsx +++ b/src/app/(default)/area/[[...slug]]/page.tsx @@ -22,7 +22,7 @@ import { AuthorMetadata, OrganizationType } from '@/js/types' /** * Page cache settings */ -export const revalidate = 86400 // 24 hours +export const revalidate = 300 // 5 mins export const fetchCache = 'force-no-store' // opt out of Nextjs version of 'fetch' interface PageSlugType { diff --git a/src/app/(default)/page.tsx b/src/app/(default)/page.tsx index 184f96e1c..b84fd1e64 100644 --- a/src/app/(default)/page.tsx +++ b/src/app/(default)/page.tsx @@ -9,7 +9,7 @@ import { InternationalToC } from './components/InternationalToC' import { Volunteers } from './components/Volunteers' import { RecentContributionsMap } from './components/recent/RecentContributionsMap' -export const revalidate = 86400 +export const revalidate = 300 // 86400 /** * Root home page */