PHPackages                             dimadin/purge-cache-for-cloudflare - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Caching](/categories/caching)
4. /
5. dimadin/purge-cache-for-cloudflare

ActiveWordpress-plugin[Caching](/categories/caching)

dimadin/purge-cache-for-cloudflare
==================================

Simple full HTML page cache purger for CloudFlare

1.2(10y ago)571[1 issues](https://github.com/dimadin/purge-cache-for-cloudflare/issues)GPL-2.0+PHP

Since Nov 4Pushed 9y ago2 watchersCompare

[ Source](https://github.com/dimadin/purge-cache-for-cloudflare)[ Packagist](https://packagist.org/packages/dimadin/purge-cache-for-cloudflare)[ Docs](http://blog.milandinic.com/wordpress/plugins/purge-cache-for-cloudflare/)[ RSS](/packages/dimadin-purge-cache-for-cloudflare/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (2)Versions (4)Used By (0)

Purge Cache for CloudFlare
==========================

[](#purge-cache-for-cloudflare)

[Plugin homepage](http://blog.milandinic.com/wordpress/plugins/purge-cache-for-cloudflare/) | [Plugin author](http://blog.milandinic.com/) | **[Premium Version](https://shop.milandinic.com/downloads/purge-cache-for-cloudflare-plus/)** | [Donate](http://blog.milandinic.com/donate/)

Purge Cache for CloudFlare is a simple plugin that uses CloudFlare® API to purge cache of full HTML pages when a new post is made.

This free version is only indended for basic usage. If you want to use it in full capacity, consider buying [premium version](https://shop.milandinic.com/downloads/purge-cache-for-cloudflare-plus/).

It works by purging front page, post's page, and main RSS feed. This should work for most sites. However, there are of filters, actions, and methods that provide full customizability and extensibility.

Note that this plugin also sets cache to 30 minutes for all frontend pages. This means that if you use default option in CloudFlare, it tells them to revalidate page cache after that time, so it means that cache for any page expires on CloudFlare servers after that time.

You can change this limits by using filters from you code. If you want user interface in your admin, use [premium version](https://shop.milandinic.com/downloads/purge-cache-for-cloudflare-plus/).

You should create new CloudFlare page rules to set proper caching. It is your responsibility to set this properly.

First page rule should exclude certain paths from caching. Recommended value for this is `wp-`. This excludes admin pages and default `.php` pages. Example of URL pattern: `*example.com/*wp-*` This value can also set via filter or via admin in [premium version](https://shop.milandinic.com/downloads/purge-cache-for-cloudflare-plus/).

Second page rule should sets caching. You need to set "Custom caching" to "Cache everything". Recommended value for "Edge cache expire TTL" is default, "Respect all existing headers" which means that CloudFlare revalidates after 30 minutes, while for "Browser cache expire TTL" is also 30 minutes. Example of URL pattern: `*example.com/*`

Purge Cache for CloudFlare is in no way affiliated with CloudFlare. It is only using CloudFlare API to purge page cache of certain URLs. CloudFlare is registered trademark of CloudFlare, Inc.

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance16

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~92 days

Total

3

Last Release

3712d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/54c4bd393dafccafaf09bf6441bbd933db30b4d4fd153211f79636e8838cdac5?d=identicon)[dimadin](/maintainers/dimadin)

---

Top Contributors

[![dimadin](https://avatars.githubusercontent.com/u/2678421?v=4)](https://github.com/dimadin "dimadin (43 commits)")

---

Tags

wordpresscachecloudflare

### Embed Badge

![Health badge](/badges/dimadin-purge-cache-for-cloudflare/health.svg)

```
[![Health](https://phpackages.com/badges/dimadin-purge-cache-for-cloudflare/health.svg)](https://phpackages.com/packages/dimadin-purge-cache-for-cloudflare)
```

###  Alternatives

[wp-media/wp-rocket

Performance optimization plugin for WordPress

7531.3M3](/packages/wp-media-wp-rocket)[helsingborg-stad/municipio

A bootstrap theme for creating municipality sites.

4028.5k10](/packages/helsingborg-stad-municipio)[rtcamp/nginx-helper

Cleans nginx's fastcgi/proxy cache or redis-cache whenever a post is edited/published. Also provides cloudflare edge cache purging with Cache-Tags.

23617.1k1](/packages/rtcamp-nginx-helper)[yediyuz/laravel-cloudflare-cache

laravel-cloudflare-cache

28445.4k](/packages/yediyuz-laravel-cloudflare-cache)[rarst/fragment-cache

WordPress plugin for partial and async caching of heavy front-end elements.

14115.4k2](/packages/rarst-fragment-cache)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
