revalidateTag

A function from next/cache that invalidates every cached entry labelled with a given tag, across all routes.

In more detail

revalidateTag('inventory') marks every fetch and use cache result tagged inventory as stale, along with pages built from them. They are regenerated the next time they are requested.

Related terms

Taught in

References