Next.js Discord

Discord Forum

CacheHandler + use cache doesn’t work together

Answered
Chinese softshell turtle posted this in #help-forum
Open in Discord
Avatar
Chinese softshell turtleOP
If using unatable_cache, custom cache handlers work, but ‘use cache’ doesn’t save anything to a cachHandler
Answered by B33fb0n3
the 'use cache' directive is currently experimental and there might be features, that are not supported with it yet. unstable_cache is a lot more stable than use cache. So you might want to use it first and when use cache is stable, you can switch to it
View full answer

4 Replies

Avatar
@Chinese softshell turtle If using unatable_cache, custom cache handlers work, but ‘use cache’ doesn’t save anything to a cachHandler
Avatar
the 'use cache' directive is currently experimental and there might be features, that are not supported with it yet. unstable_cache is a lot more stable than use cache. So you might want to use it first and when use cache is stable, you can switch to it
Answer
Avatar
@Chinese softshell turtle solved?
Avatar
Chinese softshell turtleOP
Yes, thank you
Avatar
happy to help