Next Cache Revalidate

Clears Next.js server cache when Payload documents change in chosen collections

Community 0 4/wk MIT v0.1.1

Installation

pnpm add @innovixx/payload-next-cache-revalidate-plugin

About

Next Cache Revalidate watches the collections you pick and calls a Next.js revalidation endpoint each time a document is saved. Pages cached on the Next.js server are cleared, so visitors see the latest content without waiting for the cache to expire. The revalidation URL can be built per document, so a blog post can clear its own page while a product can clear a different path.

Each collection can have its own URL rule. The revalidation request is sent in the background, so saving in the admin panel does not wait on it. Failed requests are logged when logging is turned on.

Package info

Package name
@innovixx/payload-next-cache-revalidate-plugin
Latest version
0.1.1
Unpacked size
221 kB
License
MIT
Weekly downloads
4
Last publish
Apr 24, 2025

More from innovixx

View profile

Groups Payload fields inside a drawer that opens from a button or icon

Adds a HEX color picker field to any Payload collection

Adds a GraphQL tab with an in-browser IDE to collection and global edit views

Similar plugins

More in Cache

Pushes content changes from Payload to open pages without a reload

Managed redirects with cache-backed Next.js middleware and an orderable admin list

Moves frontend translation keys into the Payload database for editors to manage

Revalidates Next.js paths and cache tags when documents are published or deleted

Background jobs for scheduled publishing, cache revalidation and approval expiry

Revalidates Next.js cache tags for documents and their related content on save