-
Couldn't load subscription status.
- Fork 4k
Fix cache revalidation for computed revisions #3134
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
Conversation
|
|
Summary of the deployments: Version 1
Version 2
Test content |
|
The latest updates on your projects. Learn more about Argos notifications ↗︎
|
We considered all revisions to be immutable, even when they were computed. With this PR, we'll leverage the cache-tags provided by the API, to ensure the tag is invalidated when the sources of the computations are updated.
This PR should be combined with one in the API to pass tags for every revision APIs.
On Cloudflare, we'll still use
unstable_cacheand it'll not work properly for computed content (until opennextjs/opennextjs-aws#820 is ready).On Vercel, it'll use
use cacheand the tags are based on the API response.