Next.js Discord

Discord Forum

Invalidate whole Cache

Unanswered
Morelet’s Crocodile posted this in #help-forum
Open in Discord
Morelet’s CrocodileOP
Hey, I have the problem, that when i log out of my app and log in with a different user I get the date from the previous user because the fetches are the same. Only the AccessToken-Cookie is different. Is there a way to solve this issue? My approch would be to invalidate the whole Cache like extend the revalidate-mothod to revalidate all paths

0 Replies