Skip to content
masterclass Buddy

Next.js 16+ · Function

unstable_cacheTag

cacheTag adds tags to cached data so you can invalidate selected cache entries later. It requires Cache Components to be enabled and is used inside a use cache scope.

Last updated

Since
16.0.0

Syntax

cacheTag(...tags: string[])

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • cacheComponents
  • use cache
  • revalidateTag
  • updateTag
  • cacheLife

Source: cacheTag. Checked 2026-11-03.