use cache experimental and unstable_cache deprecated
Answered
Paper wasp posted this in #help-forum
Paper waspOP
I've been playing with ISR for a while with unstable_cache and we are starting a new project.
unstable_cache is deprecated and use cache is experimental, did I miss something ? can we go with use cache confidently ?
unstable_cache: https://nextjs.org/docs/app/api-reference/functions/unstable_cache => says to use "use cache"
use cache: https://nextjs.org/docs/app/api-reference/directives/use-cache => says careful experimental
unstable_cache is deprecated and use cache is experimental, did I miss something ? can we go with use cache confidently ?
unstable_cache: https://nextjs.org/docs/app/api-reference/functions/unstable_cache => says to use "use cache"
use cache: https://nextjs.org/docs/app/api-reference/directives/use-cache => says careful experimental
Answered by Asian black bear
unstable_cache
is way more stable as it was available for more than a year. use cache
shouldn't be used in production yet.2 Replies
Asian black bear
unstable_cache
is way more stable as it was available for more than a year. use cache
shouldn't be used in production yet.Answer