Next.js 16+ · Module
next/cache
updateTag() is a Next.js cache API for Server Actions. It expires tagged data so a mutation can show fresh results immediately.
Last updated
- Since
- Next.js 16
Syntax
updateTag(tag)In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
revalidateTag()cacheTag()cacheLife()use cacheServer ActionsrevalidatePath()