Openstatus www.openstatus.dev

🥅 add cache (#538)

authored by

Thibault Le Ouay and committed by
GitHub
2b1bbeba d27f1c3f

+3 -3
+1 -1
apps/web/src/app/status-page/[domain]/page.tsx
··· 26 26 searchParams: { [key: string]: string | string[] | undefined }; 27 27 }; 28 28 29 - export const dynamic = "force-dynamic"; 29 + export const revalidate = "600"; 30 30 31 31 export default async function Page({ params }: Props) { 32 32 const page = await api.page.getPageBySlug.query({ slug: params.domain });
+2 -2
packages/tinybird/src/client.ts
··· 25 25 data: tbBuildResponseList, 26 26 opts: { 27 27 // cache: "no-store", 28 - revalidate: 30, // 30 seconds cache 28 + revalidate: 600, // 10 min cache 29 29 }, 30 30 }); 31 31 } ··· 37 37 data: tbBuildMonitorList, 38 38 opts: { 39 39 // cache: "no-store", 40 - revalidate: 300, // 5 min cache 40 + revalidate: 600, // 10 min cache 41 41 }, 42 42 }); 43 43 }