payload-cache-revalidation

Official

Maintain Next.js + Payload cache integrity with per-locale vs locale-agnostic tags and hooks.

Authorprototypdigital
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Ensures cache tags and revalidation hooks in Next.js + Payload CMS projects remain synchronized, avoiding stale content and reducing deployment complexity.

Core Features & Use Cases

  • Consistent Tagging: Standardizes tag creation using a shared cacheTags helper, avoiding hardcoded strings.
  • Locale-Agnostic vs Per-locale Tags: Automatically assigns tags based on page content to either all locales or a specific locale.
  • Revalidation Hooks: Generates revalidation hooks for each cached collection, ensuring cache busting on data changes.
  • Use Case: Ideal for projects with dynamic content that relies on cache tags for efficient rendering and revalidation.

Quick Start

Implement the payload-cache-revalidation skill in your project to maintain cache integrity and enhance performance.

Dependency Matrix

Required Modules

None required

Components

scriptsreferences

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: payload-cache-revalidation
Download link: https://github.com/prototypdigital/claude-marketplace/archive/main.zip#payload-cache-revalidation

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 620,000+ vetted skills library on demand.