WP Manifestindependent plugin directory

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/dexerto/wp-graphql-cloudflare-cache/archive/refs/heads/main.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

WordPress plugin that integrates WPGraphQL with Cloudflare's cache purge API. It adds Cache-Tag headers to GraphQL responses and automatically purges those tags via Cloudflare when content changes.

Requirements

How it works

  1. Cache-Tag headers -- On every GraphQL response, the plugin copies WPGraphQL's X-GraphQL-Keys header into a Cache-Tag header that Cloudflare reads for tag-based caching.
  2. Automatic purging -- When content changes in WordPress, WPGraphQL Smart Cache fires a graphql_purge action with the relevant cache keys. This plugin sends those keys to Cloudflare's /purge_cache API to invalidate only the affected cached responses.

Configuration

  1. In the WordPress admin, go to GraphQL > Settings > Cloudflare.
  2. Enter your Zone ID (how to find it).
  3. Enter a Cloudflare API Token with Zone.Cache Purge permission (create one here).
  4. Check Enable Cloudflare Revalidation.

Local development

Prerequisites

Setup

composer install
npm install
npm start          # starts WordPress at http://localhost:8888
npm run seed       # creates sample posts, pages, categories, and tags

WP Admin: http://localhost:8888/wp-admin/ (username: admin, password: password)

GraphQL endpoint: http://localhost:8888/index.php?graphql

The environment comes with WPGraphQL, WPGraphQL Smart Cache, and this plugin pre-activated.

Available scripts

Command Description
npm start Start the WordPress environment
npm run seed Populate sample content (idempotent)
npm stop Stop the environment
npm run destroy Remove all containers and data
composer phpcs Run PHP linting (WordPress/VIP coding standards)
composer phpcbf Auto-fix lint issues

Commits and PRs

  • Conventional Commits enforced by a local git hook
  • PRs are squash-merged to main -- the PR title becomes the commit message

Releases

3 releases.

Tag
Published
v1.1.1 latest
Sep 25, 2026 27d ago
Apr 13, 2026 6mo ago
Nov 17, 2023 2 years ago

These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.

A grade

Security

WPGraphQL Cloudflare Cache 1.1.0 · audited by WP Registry

No security issues found.

Audited release
1.1.0
Findings
none
Worst severity
—
Content hash
efe62fa88a84c47fd23088e5…

WP Registry hashes the installable build and reports on that exact bytes-for-bytes copy. Embargoed findings are withheld until they are disclosed, so a clean verdict means nothing public is outstanding. WP Manifest does not audit code itself.