Next.js Discord

Discord Forum

unstable_cache behavior

Unanswered
Flemish Giant posted this in #help-forum
Open in Discord
Flemish GiantOP
I am using unstable_cache to fetch some external data to pass back to my server component.
This data revalidates once a day.

My questions is:
If in the case the cache is invalidated and my function is called again, and it FAILS, what happens then? is the last cached result returned or do I need to implement another cache layer?

0 Replies