menu_book Course Curriculum (Next.js) expand_more
App Router Foundations
Data and Rendering
Server Features
Cache tags and revalidateTag
Learn Cache tags and revalidateTag in Next.js through a focused explanation, a topic-specific example, an engineering warning, and a mastery check.
12 min read
•
Advanced
nextjs-032.ts
typescript
'use server';
import { revalidateTag } from 'next/cache';
export async function refreshProducts(){ revalidateTag('products'); }
What to watch
Content source & attribution
Original Syntaxis Content · Original Syntaxis Content