Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Docs: Improve caching story #73437
base: canary
Are you sure you want to change the base?
Docs: Improve caching story #73437
Changes from 16 commits
f2e3ee1
9143654
3b820a3
b72324b
a8e6cfe
8f1c93a
4bebd04
7254afb
23581d5
9bf78d8
3a4a981
1fbc5fd
d79be66
5d0eaa0
5481a23
2237db5
8c78cc0
fb5e279
b6cf0a1
eebe58c
6d9cd97
b690c1e
f5a8342
b33b5ed
89db02d
03b1ad2
1b8a681
4111b1a
2a9effe
c839e79
8d9e017
66559c9
03e4bc7
4b2892e
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe again: There will be two separate entries into the cache. One for
getPosts
and another forgetPostsBySlug
, where the cache will be invalidated if theslug
argument changes.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For the invalidated part, wouldn't it be two separate entries? A cache key is the function's unique id + the arguments?
https://vercel.slack.com/archives/C06QRHBQ742/p1730766893478919?thread_ts=1730765761.544979&cid=C06QRHBQ742