Content Revalidation Tracker
Keep your headless frontend fresh.
Not scanned yet
WordPress plugin
10 installs
Install in
Content Revalidation Tracker connects headless WordPress to your frontend. When content changes, the plugin sends a secure request to your frontend’s revalidation endpoint, so the affected pages are rebuilt right away and visitors never see stale content.
It works with Next.js on-demand ISR, Nuxt, Astro, Gatsby or any framework that can expose an API route.
How it works
- You publish, update, unpublish, trash or delete a post, page, term or author.
- The plugin works out the frontend path using your URL mapping (for example
/blog/my-post/). - It sends
POST https://your-frontend.com/api/revalidate?path=/blog/my-post/with the secret in theX-Revalidate-Secretheader. - Your frontend revalidates the page. If the request fails, the plugin retries it in the background.
Features
- Automatic revalidation for posts, pages, custom post types, categories, tags, custom taxonomies and author archives.
- Slug changes handled: both the old and the new URL are revalidated.
- URL mapping: match your frontend routes with per post type, per taxonomy and author archive prefixes, with a live preview of the resulting path.
- Secure by default: the secret is sent in a request header, never stored in the activity log, and masked on the settings page. A secret generator is built in.
- Fast for editors: requests are sent after the editor’s response is finished, so saving a post is never slowed down.
- Reliable: timeouts, rate limits and server errors are retried in the background through WP-Cron.
- Built for bulk changes: bulk edits, imports and WP-CLI loops are sent in parallel (10 at a time) with a retry queue of up to 5,000 paths.
- Test tool: send a real revalidation request for any path and see the response.
- Activity log: see the HTTP status of recent requests, filter by success, failure or retry, and search by path.
- Developer friendly: filters for allowed post types, taxonomies, prefixes, timeouts and concurrency.
- Clean uninstall: deleting the plugin removes all of its data, including on multisite.
Who it is for
- Headless WordPress sites with a Next.js, Nuxt, Astro or Gatsby frontend.
- Sites that use static generation or incremental static regeneration and need fresh pages without full rebuilds.
- Agencies that want a simple, reliable link between editors and the frontend.
Frontend endpoint example (Next.js App Router)
Create app/api/revalidate/route.ts on your frontend. Keep the secret in a server-only environment variable such as REVALIDATE_SECRET, never in a NEXT_PUBLIC_ variable.
import { revalidatePath } from 'next/cache';
import { timingSafeEqual } from 'node:crypto';
const SECRET = process.env.REVALIDATE_SECRET ?? '';
const ALLOW_LEGACY = process.env.ALLOW_LEGACY_QUERY_SECRET === 'true';
function matches(value: string | null): boolean {
if (!value || !SECRET) return false;
const a = Buffer.from(value), b = Buffer.from(SECRET);
return a.length === b.length && timingSafeEqual(a, b);
}
export async function POST(req: Request) {
const url = new URL(req.url);
const ok = matches(req.headers.get('x-revalidate-secret'))
|| (ALLOW_LEGACY && matches(url.searchParams.get('secret')));
if (!ok) return Response.json({ message: 'Invalid secret' }, { status: 401 });
const path = url.searchParams.get('path');
if (!path) return Response.json({ message: 'Missing path' }, { status: 400 });
revalidatePath(path);
return Response.json({ revalidated: true, path });
}
ALLOW_LEGACY_QUERY_SECRET is only needed while migrating from the old `?secret=` query parameter. New sites can leave it unset.
Developer filters
content_revalidation_tracker_allowed_post_types: limit which post types are revalidated.content_revalidation_tracker_allowed_taxonomies: limit which taxonomies are revalidated.content_revalidation_tracker_author_prefix: change the author archive prefix.content_revalidation_tracker_request_timeout: request timeout in seconds (default 10).content_revalidation_tracker_concurrency: parallel requests per run (default 10).content_revalidation_tracker_batch_time_limit: time budget per run in seconds (default 30).content_revalidation_tracker_retry_queue_limit: maximum paths in the retry queue (default 5,000).
Written by Joobi from the project's own listing. See the source page
30 Nov 2026
Version 2.1.0 released. Not scanned yet.
2.1.0
Security
- The secret is now sent in the
X-Revalidate-Secretheader. Existing sites switch to a compatibility mode that also sends?secret=; new installs use the header only. See the FAQ to migrate. - The secret is no longer stored in the activity log (existing entries are cleaned on upgrade) and is masked on the settings page. Error messages and response bodies are redacted.
- The secret field is now a password field, and the help text no longer suggests a
NEXT_PUBLIC_variable. - A domain entered without a scheme defaults to
https://. Domains with a query string or fragment are rejected, and prefix inputs are validated.
Added
- Redesigned settings page with Overview, Connection, URL Mapping, Activity and System tabs, live field validation, secret generator, copy buttons, a filterable activity log, and “Retry now” and “Clear log” actions.
- Parallel requests (10 at a time, filter
content_revalidation_tracker_concurrency), so bulk actions of hundreds of posts finish in one run. - Author archive prefix on the URL Mapping tab, plus the
content_revalidation_tracker_author_prefixfilter. - Uninstall removes all plugin data.
Fixed
- Unpublishing (draft, pending, private) now revalidates the page.
- Trashing no longer sends a request for a
/slug__trashed/path, and deleting from the trash no longer sends a request. - Deleting a category, tag or other term now revalidates its page.
- Slug changes revalidate both the old and the new URL for posts, terms and authors.
- Path and secret are URL-encoded correctly.
- HTTP errors are no longer reported as successful.
- The domain and secret can be cleared to turn revalidation off, and invalid-domain errors are no longer shown twice.
- The log limit is always respected, and the activity log is no longer autoloaded.
- LICENSE.txt now contains the GPLv2 text.
Changed
- Requests are sent after the editor’s response is finished, de-duplicated per request, with a 10 second timeout (was 45). Failures are retried in the background through WP-Cron.
- The retry queue holds up to 5,000 paths (was 500), and the activity log is written once per run instead of once per path.
- The test tool now sends POST, like real requests, and accepts any 2xx response.
- Users without published posts no longer trigger author page revalidation.
content_revalidation_tracker_trigger_revalidation()returns true when the request is queued; the result is recorded in the activity log.- The “Sending revalidation request” admin notice was removed; see the Activity tab instead.
Deprecated
content_revalidation_tracker_on_post_trash()is no longer hooked.
2.0.1
- Updated: “Tested up to” WordPress 7.0.
- Fixed: Filter hook names now use the full plugin prefix, following WordPress coding standards.
2.0.0
- Added: Custom post type and taxonomy prefix mapping.
- Added: Manual test revalidation tool.
- Added: Log limit setting.
- Improved: Error handling and debugging.
- Improved: Security validation and code optimization.
1.0.0
- Initial release with automatic revalidation for posts, pages and users, secret key validation, dashboard logging and admin notices.
8 Aug 2024Listed on Joobi from WordPress.org.
Follow this listing's changes (Atom feed)