From dfb6abd460a548c73a74c9221f616f7cf5109d6b Mon Sep 17 00:00:00 2001 From: MartinBraquet Date: Thu, 31 Jul 2025 00:08:25 +0200 Subject: [PATCH] Fix cache tag --- app/api/profiles/[id]/route.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/api/profiles/[id]/route.ts b/app/api/profiles/[id]/route.ts index a698b906..17d8dc10 100644 --- a/app/api/profiles/[id]/route.ts +++ b/app/api/profiles/[id]/route.ts @@ -9,7 +9,7 @@ export async function GET( const params = await context.params; const { id } = params; - const cacheStrategy = { swr: 3600, ttl: 3600, tags: ["profiles/[id]"] }; + const cacheStrategy = { swr: 3600, ttl: 3600, tags: ["profiles_id"] }; const user = await prisma.user.findUnique({ where: { id }, select: {