-
Notifications
You must be signed in to change notification settings - Fork 27.8k
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
Conversation
All broken links are now fixed, thank you! |
- We don't want to talk about these just yet
return data.json() | ||
} | ||
``` | ||
|
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 for getPostsBySlug
, where the cache will be invalidated if the slug
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
Co-authored-by: Lee Robinson <[email protected]>
Co-authored-by: Lee Robinson <[email protected]>
…://github.com/vercel/next.js into docs-getting-started-caching-and-revalidating
Cache Rules Everything Around Me 🍦