Smart Cache

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

Community 1 9/wk MIT v1.3.1

Installation

pnpm add payload-smart-cache

About

Smart Cache clears the Next.js cache for pages that depend on your Payload content, so visitors see edits without a manual rebuild. It reads the relationships between your collections and globals and builds a dependency graph. When a document changes, the plugin revalidates its own cache tags and those of every document that references it, including indirect links.

For versioned collections, invalidation runs only on publish, so draft saves leave the live site cache alone. In multi-tenant setups, you can scope invalidation per tenant, so one tenant's edits do not flush the cache for the others. A helper wraps data-fetching functions with collection and global tags, so each cached query is refreshed when its source content changes.

Package info

Package name
payload-smart-cache
Latest version
1.3.1
Unpacked size
82 kB
License
MIT
Weekly downloads
9
Last publish
Oct 2, 2026

More from davincicoding-org

View profile

Translation manager for UI messages using ICU MessageFormat syntax

Replaces open user signup with email invitations and password setup

Adds threaded comment discussions with nested replies to collections and globals

Automatic monthly invoicing with PDF output and email delivery for clients

Cascades deletes, trash and restores through Payload relationship fields

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

Next.js cache revalidation that clears only the tags a Payload change touches