Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docs/01-app/03-api-reference/04-functions/cacheTag.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ related:
- app/api-reference/config/next-config-js/cacheComponents
- app/api-reference/directives/use-cache
- app/api-reference/functions/revalidateTag
- app/api-reference/functions/updateTag
- app/api-reference/functions/cacheLife
---

Expand Down Expand Up @@ -85,6 +86,7 @@ export default async function submit() {

## Good to know

- **updateTag**: Call [`updateTag`](/docs/app/api-reference/functions/updateTag) from a [Server Action](/docs/app/getting-started/mutating-data) to expire the tag immediately so the next read fetches fresh data. Use this for **read-your-own-writes** after a mutation instead of the stale-while-revalidate flow shown above with [`revalidateTag`](/docs/app/api-reference/functions/revalidateTag). See [Differences from `revalidateTag`](/docs/app/api-reference/functions/updateTag#differences-from-revalidatetag).
- **Idempotent Tags**: Applying the same tag multiple times has no additional effect.
- **Multiple Tags**: You can assign multiple tags to a single cache entry by passing multiple string values to `cacheTag`.

Expand Down
Loading