ISR revalidation

Integrates ISR-style cache revalidation into Payload CMS for Next.js.

Community 2 56/wk MIT v1.2.0

Installation

pnpm add @ggaidelevicius/payload-isr

About

This plugin enhances Payload CMS by implementing Incremental Static Regeneration (ISR) capabilities tailored for Next.js applications. It enables automatic cache revalidation on document changes, including publishing, updating, unpublishing, and deletion, alongside options for full rebuilds when necessary. The plugin requires configuration of collections and global settings to define which documents and triggers will cause cache updates. The plugin offers hooks like `afterChange` and `afterOperation` to interact within document life cycles. Users can set up specific paths and cache tags for revalidation, enabling fine control over how content updates affect site performance. Detailed logging options are available to aid in debugging and monitoring of the cache revalidation process. Users can benefit from minimal configuration, enabling core functionality with just a collection and path resolver, or can expand the configuration to support complex scenarios involving multiple collections, global settings, and comprehensive rebuild strategies.

Package info

Package name
@ggaidelevicius/payload-isr
Latest version
1.2.0
Unpacked size
186 kB
License
MIT
Weekly downloads
56
Last publish
Mar 6, 2026

Similar plugins

More in Storage