Skip to content
Discussion options

You must be logged in to vote

revalidatePath(path) invalidates the cache for a specific route, so the next request to that page rebuilds it. revalidateTag(tag) invalidates every fetch that was tagged with that string, across any route. Use tags when the same data feeds multiple pages (revalidate once, all consumers update); use path when you just need one route refreshed.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Kevinchamplin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant