From 131cb0ff79ffb14e865c6da7866cb9caead7de92 Mon Sep 17 00:00:00 2001 From: MartinBraquet Date: Mon, 11 Aug 2025 17:34:00 +0200 Subject: [PATCH] Disable interest cache --- app/api/interests/route.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/api/interests/route.ts b/app/api/interests/route.ts index ab5f78ef..f914c85a 100644 --- a/app/api/interests/route.ts +++ b/app/api/interests/route.ts @@ -4,7 +4,8 @@ import { NextResponse } from "next/server"; export async function GET() { try { // Get all interests from the database - const cacheStrategy = { swr: 60, ttl: 60, tags: ["interests"] }; + // Disable cache for now as it bugs when saving profile with new interest and clicking on "Edit Profile" just after + const cacheStrategy = {swr: 0, ttl: 0, tags: ["interests"]}; const interests = await prisma.interest.findMany({ select: { id: true,