🔥 Black Friday Sale: Get 65% OFF Any PageForge Pro Plan! Use code BF65 Claim Offer →
Account Get it free
Cache Tags for Cloudflare icon
Maintained Tested with WP 7.1

Cache Tags for Cloudflare

Precise Cloudflare cache purging for WordPress: adds Cache-Tag headers and purges only affected posts, pages, and terms.

Active installs10+10+ tier
Downloads · 30d93▲ +34.8% vs prev. 30d
Rating5/51 reviews
Health score63/100Good
All-time downloads524Since Jul 2026
Support resolved—No recent threads
RequiresWP 6.8PHP 8.3+
Downloads · 7d17▼ -43.3% week over week
Our verdict

Solid choice

Cache Tags for Cloudflare is a solid plugin choice in 2026, with a few things worth checking first. It runs on 10+ sites, is rated 5/5 and was last updated 4 months ago, and scores 63/100 on our health check.

  • Tested with the latest WordPress (7.1)
  • Small user base (10+ active installs)
  • Very few reviews so far
  • Needs PHP 8.3 or newer

How does it stack up?

Side-by-side on installs, updates, ratings & support

Daily downloads

4914Sep 4Oct 18Dec 2
Yesterday3
Daily average (1y)4
Peak day60Jul 22, 2026
Last 12 months530

Download spikes usually follow a new release — each site that auto-updates counts as a download.

Rankings

Where Cache Tags for Cloudflare stands today

WordPress.org search rankings

Live position in the plugin search, top 100
KeywordPositionCompeting pluginsCategory
cache >100 10,000 Best cache plugins →
cache-tag #35 5,392 Best cache-tag plugins →
cdn >100 4,990 Best cdn plugins →
cloudflare #53 2,949 Best cloudflare plugins →
Purge #95 1,556 Best Purge plugins →

Version adoption

Share of active sites per release.

  • 1.5100.0%

Rating breakdown

★★★★★★★★★★ 5 from 1 reviews

  • 5★100.0%
  • 4★0.00%
  • 3★0.00%
  • 2★0.00%
  • 1★0.00%

About Cache Tags for Cloudflare

From the official readme · v1.5.2

Description

Cache Tags for Cloudflare does two things:

  1. Tagging — adds a Cache-Tag HTTP response header to singular posts, pages, custom post types and taxonomy terms so Cloudflare can invalidate them by tag.
  2. Purging — calls the Cloudflare API to purge the relevant tags when content changes (post publish/update/trash/delete and taxonomy term edits).

The two features can be enabled independently.

Works on any Cloudflare plan. The Cache-Tag header and purge-by-tag are available on all Cloudflare plans (Free, Pro, Business, and Enterprise); purge API rate limits scale with your plan.

Default tags

For singular content the plugin emits:

  • content
  • b{id} (site scope: b1 on single site, b{blog_id} on multisite)
  • b{id}-p{ID}
  • b{id}-pt-{post_type}
  • b{id}-t{term_id} for every public taxonomy term the post belongs to

Example header:

Cache-Tag: content,b1,b1-p42,b1-pt-post,b1-t5

Term tags use the numeric term ID (b1-t5), so they stay stable when a term is renamed or its slug changes.

Credentials

Provide a scoped Cloudflare API token (Zone → Cache Purge permission) and a Zone ID. Define them in wp-config.php for best security:

define( 'CACHE_TAGS_CF_API_TOKEN', 'your-scoped-token' );
define( 'CACHE_TAGS_CF_ZONE_ID', 'your-zone-id' );

When these constants are defined they take precedence and the settings fields become read-only. Otherwise enter them under Settings → Cache Tags.

Purge tools

The Settings → Cache Tags screen has a Purge tab for manual, on-demand purges by group: a whole post type, a taxonomy term, everything, or raw comma-separated tags. Saving valid credentials on the Settings tab automatically verifies the Cloudflare connection and unlocks the purge tools.

Automatic purging

When Auto-purge on changes is enabled and valid credentials are set, the plugin purges the affected tags automatically on these events:

  • Post published, updated, trashed, or untrashed (any transition to or from the published status) — purges b{id}-p{ID} plus the post’s b{id}-t{term_id} tags.
  • Post permanently deleted — purges b{id}-p{ID} and its b{id}-t{term_id} tags.
  • Taxonomy term edited or deleted — purges b{id}-t{term_id}.

Only public post types and taxonomies are considered; revisions and autosaves are ignored. Tags collected during a request are de-duplicated and sent as a single batched purge after the response (in Cloudflare’s 30-tags-per-request batches). Draft-only edits, comments, menu/widget/theme changes, and plugin/core updates do not trigger a purge — use the Purge tab, WP-CLI, or the cache_tags_for_cloudflare/purge_tags filter for those. Static files such as images are served outside WordPress and are not tagged or purged by tag.

Hooks and programmatic purging

The plugin exposes hooks for customizing tags and purging from your own code:

  • Filters: cache_tags_for_cloudflare/tags, cache_tags_for_cloudflare/purge_tags
  • Result actions: cache_tags_for_cloudflare/purged, cache_tags_for_cloudflare/purge_failed
  • Programmatic purging: cache_tags_for_cloudflare/purge_post, /purge_terms, /purge_post_type, /purge_all, /purge

See the Developer guide for full documentation and examples.

WP-CLI

wp cache-tags purge --post-type=page
wp cache-tags purge --taxonomy=category --terms=news,sport
wp cache-tags purge --post=42
wp cache-tags purge --tags=b1-t5,content
wp cache-tags purge --all
wp cache-tags verify

On multisite, --all purges only the current subsite (via its b{id} tag). To purge every site sharing the Cloudflare zone at once, purge the global content tag: wp cache-tags purge --tags=content.

External services

This plugin connects to the Cloudflare API (https://api.cloudflare.com) to verify your credentials and to purge cached content by cache tag. Cloudflare is required for the plugin’s purging feature to work; the tagging feature (emitting Cache-Tag headers) works without contacting any external service.

The plugin contacts Cloudflare in the following cases, and only after you have provided a Cloudflare API token and Zone ID:

  • Verifying credentials — when you save credentials on the settings screen or run wp cache-tags verify, the plugin calls GET https://api.cloudflare.com/client/v4/user/tokens/verify. It sends your API token (in the Authorization header) so Cloudflare can confirm the token is valid.
  • Purging cache — when content changes and auto-purge is enabled, or when you purge manually via the settings screen or wp cache-tags purge, the plugin calls POST https://api.cloudflare.com/client/v4/zones/{zone-id}/purge_cache. It sends your API token (in the Authorization header), your Zone ID (in the request URL), and the list of cache tags to purge (in the request body). It does not send post content, personal data, or visitor information.

No data is sent to Cloudflare until you configure credentials, and no request is made unless one of the actions above is triggered.

Cloudflare is a third-party service provided by Cloudflare, Inc. By using this plugin’s purging feature you agree to Cloudflare’s terms and privacy policy:

  • Terms of Service: https://www.cloudflare.com/website-terms/
  • Privacy Policy: https://www.cloudflare.com/privacypolicy/

Installation

  1. Upload the plugin to /wp-content/plugins/cache-tags-for-cloudflare or install it from the Plugins screen.
  2. Activate the plugin.
  3. Go to Settings → Cache Tags and add your Cloudflare API token and Zone ID (or define the constants in wp-config.php).

Changelog

1.5.2

  • Changed: Tested up to WordPress 7.1.
  • Changed: Plugin URI now points to the WordPress.org listing.
  • Changed: Updated dev/build dependencies to clear security advisories (no change to the shipped plugin).

1.5.1

  • Fixed: Release workflow no longer runs twice per release, so the WordPress.org deployment no longer reports a spurious failure.
  • Fixed: Build artifacts (the staging copy and generated zip) are excluded from the distributed plugin, so the download no longer contains a nested duplicate of itself.

1.5.0

  • Fixed: The Purge tab no longer locks itself on every page load. Verification state is stored server-side, so a site with saved credentials opens with the purge tools ready instead of requiring a trip to Settings → Test connection first.
  • Added: Persistent connection status on the Settings tab: not configured, saved-but-untested, connected with the time of the last successful test, or the error Cloudflare returned.
  • Added: Tag previews under each purge tool showing the exact cache tag that will be sent (e.g. b1-pt-post).
  • Added: Help text and a link to Cloudflare’s token screen for the API token and Zone ID fields.
  • Changed: “Purge everything” now confirms in a WordPress modal that states exactly what gets purged, replacing the browser’s native confirm dialog.
  • Changed: Result notices moved to a fixed corner stack so feedback is visible from the purge buttons; successes auto-dismiss, errors stay.
  • Changed: The settings screen opens on Settings when no credentials are stored, and on Purge otherwise.
  • Changed: Debug logging and raw-tag purging moved into collapsed “Advanced” sections; credential fields no longer stretch the full window width.
  • Changed: The three “Purge” buttons now have distinct accessible labels.

1.4.1

  • Changed: The purge-failure admin notice now links to the Cache Tags settings page so credentials can be fixed in one click.
  • Changed: Added WordPress.org as the primary install option in the README.
  • Security: Bumped fast-uri to 3.1.4 to resolve a high-severity advisory (build-only dependency; nothing ships in the plugin).

1.4.0

  • Added: Purge by URL. When a post is published (including a draft or scheduled post going live), its permalink is now purged by URL alongside its cache tags. This invalidates responses that carry no cache tag — most importantly a cached 404 at a URL that has since become a real post — which tag-based purging alone cannot reach.
  • Added: cache_tags_for_cloudflare/purge_urls action hook to purge arbitrary URLs programmatically.
  • Added: wp cache-tags purge --urls=<urls> WP-CLI flag (comma-separated URLs).
  • Added: cache_tags_for_cloudflare/purged_urls and cache_tags_for_cloudflare/purge_urls_failed hooks fired after an automatic URL purge. URL purges are sent as a separate Cloudflare request from tag purges and must match the cached request exactly (scheme, host, trailing slash, query).

1.3.1

  • Fixed: “Purge everything” (the Purge tab, wp cache-tags purge --all, and the cache_tags_for_cloudflare/purge_all hook) now purges the blog-scoped b{id} tag instead of the shared content tag. On multisite this keeps the purge scoped to the current subsite instead of clearing every site sharing the Cloudflare zone. To purge every site in the zone at once, purge the content tag directly (e.g. wp cache-tags purge --tags=content).

Full changelog on WordPress.org →

Screenshots

Purge tab: purge by post type, taxonomy term, everything, or raw tags.
Purge tab: purge by post type, taxonomy term, everything, or raw tags.
Settings tab: add Cloudflare API token and Zone ID, enable auto-purge, and verify credentials.
Settings tab: add Cloudflare API token and Zone ID, enable auto-purge, and verify…

For developers

Is this your plugin? Show off the numbers.

Add a live badge to your site, docs or GitHub README. It updates on its own — no account needed.

Active installs badge Rating badge Health score badge

Best Cache Tags for Cloudflare alternatives

All cache plugins →
Alternatives
Rank Plugin Active installs Rating Updated Health
1 WP Super Cache WP Super Cache A very fast caching engine for WordPress that produces static html files. by Automattic 1M+ ★★★★★★★★★★ 4.3 (1.3K) 1 month ago 95
2 WP Fastest Cache – WordPress Cache Plugin WP Fastest Cache – WordPress Cache Plugin The simplest and fastest WP Cache system by Emre Vona 1M+ ★★★★★★★★★★ 4.9 (4.2K) 4 weeks ago 91
3 WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance WP-Optimize Get caching and more with this powerful cache plugin. Cache, optimize images, clean your… by David Anderson / Team Updraft 1M+ ★★★★★★★★★★ 4.8 (2.6K) 9 minutes ago 93
4 SpeedyCache – Cache, Optimization, Performance SpeedyCache – Cache, Optimization, Performance SpeedyCache is a WordPress cache plugin that helps you improve performance of your… by Softaculous 500K+ ★★★★★★★★★★ 4.4 (30) 6 days ago 90
5 Breeze Cache Breeze Cache Breeze is a caching plugin developed by Cloudways. Breeze uses advance caching systems to… by Cloudways 300K+ ★★★★★★★★★★ 3.6 (134) 14 minutes ago 83
6 OMGF | GDPR/DSGVO Compliant, Faster Google Fonts. Easy. OMGF | GDPR/DSGVO Compliant, Faster Google Fonts. Easy. The original Google Fonts self-hosting plugin. Automagically caches your fonts locally — no… by Daan van den Bergh 300K+ ★★★★★★★★★★ 4.7 (213) 1 week ago 96
7 Jetpack Boost – Website Speed, Performance and Critical CSS Jetpack Boost – Website Speed, Performance and Critical CSS Speed up your WordPress site with one-click optimizations like Page Cache, Critical CSS… by Automattic 200K+ ★★★★★★★★★★ 4.7 (614) 2 weeks ago 85
8 Aruba HiSpeed Cache Aruba HiSpeed Cache Aruba HiSpeed Cache interfaces directly with an Aruba hosting platform's HiSpeed Cache… by Aruba.it Dev 100K+ ★★★★★★★★★★ 3 (10) 1 month ago 79
9 Cache Enabler Cache Enabler A lightweight caching plugin for WordPress that makes your website faster by generating… by KeyCDN 100K+ ★★★★★★★★★★ 4.3 (139) 2 months ago 74
10 NitroPack – Performance, Page Speed & Cache Plugin for Core Web Vitals, CDN & Image Optimization NitroPack Boost site speed and performance with an all-in-one cache and speed optimization plugin… by NitroPack 80K+ ★★★★★★★★★★ 4.3 (311) 1 day ago 78

FAQ

Cache Tags for Cloudflare: quick answers

Straight answers, pulled from live WordPress.org data.

Source: WordPress.org

Is Cache Tags for Cloudflare free?

Yes. Cache Tags for Cloudflare is free to download and use from the official WordPress.org plugin directory.

Is Cache Tags for Cloudflare safe to use in 2026?

Cache Tags for Cloudflare is a solid plugin choice in 2026, with a few things worth checking first. It runs on 10+ sites, is rated 5/5 and was last updated 4 months ago, and scores 63/100 on our health check.

How many websites use Cache Tags for Cloudflare?

Cache Tags for Cloudflare is active on 10+ WordPress websites and has been downloaded 524 times since it launched in July 2026. It was downloaded 93 times in the last 30 days.

Does Cache Tags for Cloudflare work with WordPress 7.1?

Yes. The developer has tested Cache Tags for Cloudflare up to WordPress 7.1.5, the latest release. It requires WordPress 6.8 or newer.

What PHP version does Cache Tags for Cloudflare need?

Cache Tags for Cloudflare requires PHP 8.3 or higher. Most hosts run PHP 8.x today, so it works on any modern WordPress hosting.

When was Cache Tags for Cloudflare last updated?

The latest version, 1.5.2, was released on August 5, 2026 (4 months ago).

Who makes Cache Tags for Cloudflare?

Cache Tags for Cloudflare is developed and maintained by Per Søderlind.

What are the best alternatives to Cache Tags for Cloudflare?

The most popular alternatives to Cache Tags for Cloudflare are WP Super Cache (1M+ installs), WP Fastest Cache (1M+ installs) and WP-Optimize (1M+ installs).

Powered by PageForge

One template and a spreadsheet. A real page for every search.

PageForge turns each row of a CSV into a WordPress page with its own title, URL, SEO fields and schema, built on the layout you already designed. Free on WordPress.org.

  • CSV and XLSX, plus Google Sheets on Professional and Enterprise
  • Its own title, URL, SEO fields and schema for every page
  • Works with the block editor, Elementor, Divi and Avada
  • Free on WordPress.org, no credit card

↑↓ to move↵ to open