Title: VL Cloudflare Cache Purge
Author: Nitin Kumar Ragahv
Published: <strong>March 1, 2022</strong>
Last modified: October 16, 2025

---

Search plugins

![](https://ps.w.org/vl-cloudflare-cache-purge/assets/banner-772x250.png?rev=2686824)

![](https://ps.w.org/vl-cloudflare-cache-purge/assets/icon-256x256.png?rev=2686824)

# VL Cloudflare Cache Purge

 By [Nitin Kumar Ragahv](https://profiles.wordpress.org/nitinraghav/)

[Download](https://downloads.wordpress.org/plugin/vl-cloudflare-cache-purge.1.0.3.zip)

 * [Details](https://wordpress.org/plugins/vl-cloudflare-cache-purge/#description)
 * [Reviews](https://wordpress.org/plugins/vl-cloudflare-cache-purge/#reviews)
 *  [Installation](https://wordpress.org/plugins/vl-cloudflare-cache-purge/#installation)
 * [Development](https://wordpress.org/plugins/vl-cloudflare-cache-purge/#developers)

 [Support](https://wordpress.org/support/plugin/vl-cloudflare-cache-purge/)

## Description

This plugin adds a updated_post hook in the post update process and with the help
of it, it deletes the cache of the page in cloudflare cache and KV storage(static
cache)

## Installation

To setup this plugin add following constants in the wp-config.php file before activating
it.

    ```
    define('CF_ZONE_ID', '');
    define('CF_AUTH_TOKEN', '');
    define('CF_KV_AUTH', ''); # http auth username and password if the site is password protected. If not just add \'test:test\'
    ```

## FAQ

### Who Can You This?

The one who is using CloudFlare for storing Static Key Value pairs of the site and
the site cache, can use this plugin

### What I need to use this plugin?

You will need three things to run this plugin
 * Zone ID – that can be seen on overview
page of the site * Auth Token – That can be created from the profile section that
can manage workers * Auth: username and password that can access the API for CLoudFlare.

## Reviews

![](https://secure.gravatar.com/avatar/92b264c2bd6c8facf08497bc3e224e49585edea077074bd787ab10465e59710b?
s=60&d=retro&r=g)

### 󠀁[Simply Awesome](https://wordpress.org/support/topic/simply-awesome-313/)󠁿

 [Nitin Kumar Ragahv](https://profiles.wordpress.org/nitinraghav/) March 1, 2022

I was working with Cloudflare for Cachce and Static KV site. But I was facing many
issues post updating the posts. So I came up with a solution which I just shared
here. Please like and support me for such more useful plugins

 [ Read all 1 review ](https://wordpress.org/support/plugin/vl-cloudflare-cache-purge/reviews/)

## Contributors & Developers

“VL Cloudflare Cache Purge” is open source software. The following people have contributed
to this plugin.

Contributors

 *   [ Nitin Kumar Ragahv ](https://profiles.wordpress.org/nitinraghav/)

[Translate “VL Cloudflare Cache Purge” into your language.](https://translate.wordpress.org/projects/wp-plugins/vl-cloudflare-cache-purge)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/vl-cloudflare-cache-purge/),
check out the [SVN repository](https://plugins.svn.wordpress.org/vl-cloudflare-cache-purge/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/vl-cloudflare-cache-purge/)
by [RSS](https://plugins.trac.wordpress.org/log/vl-cloudflare-cache-purge/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.0.2

 * Again used wp_Remote_request instead of curl call to fix the timeout error.

#### 1.0.1

 * Fixed the fatal error because of the timeout occur while making API Call for 
   purging the CLoudflare Workers Static KV.
 * Added more error_log statements

## Meta

 *  Version **1.0.3**
 *  Last updated **6 months ago**
 *  Active installations **10+**
 *  WordPress version ** 5.0 or higher **
 *  Tested up to **6.8.5**
 *  PHP version ** 7.0 or higher **
 * Tags
 * [cache](https://wordpress.org/plugins/tags/cache/)[cloudflare](https://wordpress.org/plugins/tags/cloudflare/)
   [cloudflare workers](https://wordpress.org/plugins/tags/cloudflare-workers/)[workers](https://wordpress.org/plugins/tags/workers/)
 *  [Advanced View](https://wordpress.org/plugins/vl-cloudflare-cache-purge/advanced/)

## Ratings

 5 out of 5 stars.

 *  [  1 5-star review     ](https://wordpress.org/support/plugin/vl-cloudflare-cache-purge/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/vl-cloudflare-cache-purge/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/vl-cloudflare-cache-purge/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/vl-cloudflare-cache-purge/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/vl-cloudflare-cache-purge/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/vl-cloudflare-cache-purge/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/vl-cloudflare-cache-purge/reviews/)

## Contributors

 *   [ Nitin Kumar Ragahv ](https://profiles.wordpress.org/nitinraghav/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/vl-cloudflare-cache-purge/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](https://nitinraghav.com/)