Next.js Discord

Discord Forum

Nextjs RSC cache / Server action cache

Unanswered
Pollock posted this in #help-forum
Open in Discord
PollockOP
Hi all,

Trying to understand the cache better. Apologies for a potentially silly question. If I look at the docs - https://nextjs.org/docs/app/building-your-application/caching#full-route-cache

Does this mean that the full server action (and any logic / results of that logic) or just the output of the server action?

I ran into a scenario where a function would honour the if-else logic inside under one page and when declared in another it was bypassing the internal if-else logic and the output was an old value. Trying to workout whether this is a cache 'error' / issue or something else.

Be interested to hear if anyone else has encountered anything like this and what you did to resolve (if anything). For now, it seems to have 'solved' itself but helpful to understand some of the magic.

Thanks!

2 Replies