Skip to content

Commit

Permalink
fix: Tweak revalidation time
Browse files Browse the repository at this point in the history
  • Loading branch information
hampfh committed Nov 19, 2024
1 parent 5bd319a commit bbdda87
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/app/student/exhibitors/[exhibitor]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export default async function ExhibitorPage({

const exhibitors = await fetchExhibitors({
year,
next: { revalidate: 3600 * 24 * 6 /* 6 days */ }
next: { revalidate: 3600 / 2 /* 30 min */ }
})
const exhibitor = exhibitors.find(x => x.id.toString() === params.exhibitor)

Expand Down
2 changes: 1 addition & 1 deletion src/app/student/map/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default async function Page() {

const exhibitors = await fetchExhibitors({
year: 2024,
next: { revalidate: 3600 * 24 * 6 /* 6 days */ }
next: { revalidate: 3600 / 3 /* 20 min */ }
})

const exhibitorsByID = new Map(exhibitors.map(e => [e.id, e]))
Expand Down

0 comments on commit bbdda87

Please sign in to comment.