Skip to content

Commit

Permalink
test shorter page cache
Browse files Browse the repository at this point in the history
  • Loading branch information
vnugent committed Apr 26, 2024
1 parent 0157b28 commit 6505c89
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/app/(default)/area/[[...slug]]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion src/app/(default)/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down

0 comments on commit 6505c89

Please sign in to comment.