Purge Cache for CloudFlare
Plugin homepage | Plugin author | Premium Version | Donate, (*1)
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., (*2)
This free version is only indended for basic usage. If you want to use it in full capacity, consider buying premium version., (*3)
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., (*4)
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., (*5)
You can change this limits by using filters from you code. If you want user interface in your admin, use premium version., (*6)
You should create new CloudFlare page rules to set proper caching. It is your responsibility to set this properly., (*7)
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., (*8)
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/*
, (*9)
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., (*10)