Hey everybody!
In another thread (https://community.vercel.com/t/0-data-cache-usage-since-may-13/10894) I have seen, that "use cache" is currently not using the data cache as it would be expected. Only "use cache: remote" uses the cache (I can not find any documentation on that though).
It was the talk about a rollout of a new runtime, that will change the "use cache" behavior. When is this rollout planned?
I am asking because I deployed an app that uses "use cache" in expensive functions (computation, database queries). In these functions, I am logging whenever they get executed. I noticed that they are executed every time. Also nothing shows up in the runtime cache in observability. Running the next.js application as a node.js process, the caching is used correctly.
I have just tried this on a preview deployment so far, does this factor in? Might the correct caching behavior already be working when using a production deployment? But that should probably not be the case as the preview should have consistent behavior.
Can you share some insights please on how to most effectively proceed here from my side?
- Wait for the rollout
- Switch to "use cache: remote" - if so, could you point me to the documentation please
- Another way?
Thank you very much!