Skip to content

docs: link updateTag from cacheTag reference#92379

Open
aurorascharff wants to merge 2 commits intocanaryfrom
docs/cache-tag-link-updateTag
Open

docs: link updateTag from cacheTag reference#92379
aurorascharff wants to merge 2 commits intocanaryfrom
docs/cache-tag-link-updateTag

Conversation

@aurorascharff
Copy link
Copy Markdown
Member

What?

Add updateTag to the cacheTag API page: a Related link and a Good to know bullet that explains when to use it (read-your-own-writes / immediate expiry) and points to Differences from revalidateTag.

Why?

The bundled cacheTag doc only walked through revalidateTag, so the two-API invalidation model was easy to miss. This keeps existing revalidateTag wording and examples unchanged and adds a minimal pointer to updateTag without duplicating its full reference.

How?

  • related.links: include app/api-reference/functions/updateTag.
  • ## Good to know: one imperative bullet + deep link to the comparison section on the updateTag page.

PR checklist (Improving Documentation)

Made with Cursor

Add updateTag to related links and a Good to know bullet pointing to the
updateTag API and Differences from revalidateTag, without duplicating examples.

Made-with: Cursor
@nextjs-bot nextjs-bot added created-by: Next.js DevEx team PRs by the DX team. Documentation Related to Next.js' official documentation. labels Apr 5, 2026
@aurorascharff aurorascharff marked this pull request as ready for review April 5, 2026 10:21
Copilot AI review requested due to automatic review settings April 5, 2026 10:21
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR improves the cacheTag API reference by making the alternative invalidation primitive (updateTag) more discoverable, helping readers understand when to choose immediate expiry vs stale-while-revalidate behavior.

Changes:

  • Added updateTag to the cacheTag page’s Related links.
  • Added a Good to know bullet pointing readers to updateTag for read-your-own-writes / immediate expiry, with a deep link to the comparison section.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

created-by: Next.js DevEx team PRs by the DX team. Documentation Related to Next.js' official documentation.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants