Cache invalidation

Publish once, refresh dependent pages

Discover more

  1. Cache
  2. Publish
  3. Invalidate
  4. Refresh
Publishing invalidates the tagged cache before the next request.

Published references have their own cache tag. The publish webhook expires that tag so dependent pages read the latest published notes. Draft preview bypasses the cache.

Expire reference consumers

The webhook expires the reference cache separately from individual story caches. Pages without related content keep their cached story data.

  // Reference consumers have a separate dependency tag, not a global page flush.
  revalidateTag(relatedContentCacheTag, expireNow);
Expire immediately after a valid publish event.