From def42caec14a5d182c69e65eac2d20ffd663dd99 Mon Sep 17 00:00:00 2001 From: swve Date: Fri, 27 Sep 2024 19:06:35 +0200 Subject: [PATCH] fix: disable org context info cache --- apps/web/app/orgs/[orgslug]/(withmenu)/collections/page.tsx | 2 +- apps/web/app/orgs/[orgslug]/(withmenu)/courses/page.tsx | 2 +- apps/web/app/orgs/[orgslug]/(withmenu)/page.tsx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/web/app/orgs/[orgslug]/(withmenu)/collections/page.tsx b/apps/web/app/orgs/[orgslug]/(withmenu)/collections/page.tsx index b69b3cc7..c09d9dce 100644 --- a/apps/web/app/orgs/[orgslug]/(withmenu)/collections/page.tsx +++ b/apps/web/app/orgs/[orgslug]/(withmenu)/collections/page.tsx @@ -23,7 +23,7 @@ export async function generateMetadata({ }: MetadataProps): Promise { // Get Org context information const org = await getOrganizationContextInfo(params.orgslug, { - revalidate: 1800, + revalidate: 0, tags: ['organizations'], }) diff --git a/apps/web/app/orgs/[orgslug]/(withmenu)/courses/page.tsx b/apps/web/app/orgs/[orgslug]/(withmenu)/courses/page.tsx index 477b8ba6..15701054 100644 --- a/apps/web/app/orgs/[orgslug]/(withmenu)/courses/page.tsx +++ b/apps/web/app/orgs/[orgslug]/(withmenu)/courses/page.tsx @@ -17,7 +17,7 @@ export async function generateMetadata({ }: MetadataProps): Promise { // Get Org context information const org = await getOrganizationContextInfo(params.orgslug, { - revalidate: 1800, + revalidate: 0, tags: ['organizations'], }) diff --git a/apps/web/app/orgs/[orgslug]/(withmenu)/page.tsx b/apps/web/app/orgs/[orgslug]/(withmenu)/page.tsx index 429b35e2..32c5df3b 100644 --- a/apps/web/app/orgs/[orgslug]/(withmenu)/page.tsx +++ b/apps/web/app/orgs/[orgslug]/(withmenu)/page.tsx @@ -27,7 +27,7 @@ export async function generateMetadata({ }: MetadataProps): Promise { // Get Org context information const org = await getOrganizationContextInfo(params.orgslug, { - revalidate: 1800, + revalidate: 0, tags: ['organizations'], })