What Is On-Demand Revalidation?
On-demand revalidation is triggering a cache refresh in reaction to a specific event instead of a fixed schedule. A webhook from a content system, for example, can tell the application to regenerate exactly the pages affected by an edit. It keeps content fresh the moment it changes without rebuilding everything on a timer.
Why it matters
Event-driven revalidation delivers updates immediately while avoiding the waste of frequent timed rebuilds. It pairs naturally with cache tags that scope which entries to purge.
Related guides
What Is ISR Revalidation?ISR revalidation regenerates a static page in the background after a set interval, serving the cached version…
What Is a Revalidation Tag?A revalidation tag is a label on cached data so that, after a mutation, an app can invalidate exactly the ent…
What Is a Cache Tag?A cache tag is a named label on a cached entry that groups related items so they can be looked up and purged…