Next.js Discord

Discord Forum

revalidatePath question

Answered
In&Out posted this in #help-forum
Open in Discord
revalidatePath allows you to purge cached data on-demand for a specific path.

I don't really get this, what is usually in cached data?
Answered by Plott Hound
It’s useful for updating the page(s) where content has changed while still having it cached otherwise. It’s essentially on demand revalidation. It will cause fetching to be triggered again in those routes
View full answer

3 Replies

Is it whatever happens in that route or?
Plott Hound
It’s useful for updating the page(s) where content has changed while still having it cached otherwise. It’s essentially on demand revalidation. It will cause fetching to be triggered again in those routes
Answer