diff --git a/src/app/api/cache-revalidate/route.ts b/src/app/api/cache-revalidate/route.ts index a7be656..0514d01 100644 --- a/src/app/api/cache-revalidate/route.ts +++ b/src/app/api/cache-revalidate/route.ts @@ -1,16 +1,14 @@ -import { revalidateTag } from 'next/cache'; +import { revalidatePath } from 'next/cache'; import { NextResponse } from 'next/server'; -import { FetchTags } from '@/shared/api/tags'; - export async function GET() { try { - revalidateTag(FetchTags.TAYLOR); + revalidatePath('*'); // Drop all cache return NextResponse.json({ success: true }); } catch (err) { return NextResponse.json( - { error: 'Failed to revalidate', detail: err }, + { error: 'Failed to drop cache', detail: err }, { status: 500 }, ); }