-
Notifications
You must be signed in to change notification settings - Fork 27.5k
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: unstable_cache #73365
Comments
We cannot recreate the issue with the provided information. Please add a reproduction in order for us to be able to investigate. Why was this issue marked with the
|
same I use Cloudflare Pages with Next.js. On the blog page, I retrieve an R2 object using unstable_cache, but it doesn't seem to work.
|
I am facing the same issue, I tried every implementation I found about |
This issue has been automatically closed due to 2 days of inactivity and the absence of a complete reproduction. If you believe this was done in error, please leave a comment. If you are experiencing a similar issue, consider opening a new issue with a complete reproduction. Thank you. |
What is the documentation issue?
I tried this exemple,
And the cache is always missed, instead of getting the id from the cache, the async function () => {
return { id: params.userId } is run
Is there any context that might help us understand?
I realized that my implementation of unstable_cache was not good.
I initially thought it was because my implementation did not let unstable_cache infers a unique cache-key or something else. So I just replicated the exact exemple from the documentation, but even there, the value was not returned from the cache.
Does the docs page already exist? Please link to it.
https://nextjs.org/docs/app/api-reference/functions/unstable_cache
The text was updated successfully, but these errors were encountered: