Skip to content

Commit

Permalink
fix revalidate
Browse files Browse the repository at this point in the history
  • Loading branch information
lillijo committed Jul 4, 2024
1 parent c404344 commit b5389ef
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/api/rest/caching.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export const defaultFetchCacheOptions: RequestInit = {
next: { revalidate: 0 },
next: { revalidate: 3600 },
};
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ type EventLocationProps = {
location: Context;
};

export const revalidate = 0;
export const revalidate = 3600;
export default async function EventLocation({ location }: EventLocationProps) {
const events = await getEventList(location.id);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import EventLocation from './eventLocation.server';
import EventContainer from '@/app/timeline/[[...slug]]/components/container/container';
import TimelineDays from '@/app/timeline/[[...slug]]/components/days/days';

export const revalidate = 0;
export const revalidate = 3600;
export default async function TimeTable() {
const items = await getEventLocations();

Expand Down

0 comments on commit b5389ef

Please sign in to comment.