feat: render CMS SEO metadata and refresh published page caches
This commit is contained in:
@@ -26,8 +26,7 @@ export async function POST(request: NextRequest) {
|
||||
}
|
||||
|
||||
for (const tag of tags) {
|
||||
// Next.js 16 要求传入 cache profile;"max" 表示立即使该标签下的缓存完全失效。
|
||||
revalidateTag(tag, "max");
|
||||
revalidateTag(tag, { expire: 0 });
|
||||
}
|
||||
|
||||
return NextResponse.json({ revalidated: tags });
|
||||
|
||||
Reference in New Issue
Block a user