WP Cloudflare Super Page Cache


Using this plugin you can improve your website performance by enabling the page caching on Cloudlfare, even on free plan. It is compatible with every themes and WordPress versions.


  • This screen shot description corresponds to screenshot-1.jpg Step 1 - Enter the Cloudflare API Key and e-mail
  • This screen shot description corresponds to screenshot-2.jpg Step 2 - Select the domain
  • This screen shot description corresponds to screenshot-3.jpg Step 3 - Enable the Page Caching
  • This screen shot description corresponds to screenshot-4.jpg Page Cache Actions



  1. Visit «Plugins» > Add New
  2. Search for WP Cloudflare Super Page Cache
  3. Activate WP Cloudflare Super Page Cache from your Plugins page.


  1. Download WP Cloudflare Super Page Cache
  2. Upload the «wp-cloudflare-super-page-cache» directory to your «/wp-content/plugins/» directory, using ftp, sftp, scp etc.
  3. Activate WP Cloudflare Super Page Cache from your Plugins page.

Do you allow to bypass the cache for logged in users even on free plan?

Yes. It is the main purpose of this plugin.

Can I change the max-age for the cache?


When I’m logged in all internal links have «swcfpgm» parameter. What is it?

This is a parameter that allow you to bypass the Cloudflare cache on free plan for logged-in users.

Do you automatically clean up the cache on website changes?

Yes, you can enable this option if you want.

Can I restore all Cloudflare settings as before the plugin activation?

Yes. There is a reset button for it. Anyway if you deactivate the plugin, all the changes made on Cloudflare by this plugin will be restored

What happens to the browser caching settings on Cloudflare?

You will not be able to use them anymore. You will need to enter the browser caching settings on your htaccess file or, if you use Nginx, in your hosting’s configuration file.

Does it work with WooCommerce?

Due to some limitations of the Cloudflare free plan, it is not possible to use it with WooCommerce

Can I use this plugin together with WP Rocket?

Yes you can but you need to install the free WP Rocket Disable Page Caching add on.

Something is not working, what can I do?

Enable the debug and send us the information so we can help you.

Can I bypass the cache using a filter?

Yes you can. Example:

function bypass_cache_custom( $cache_bypass ) {

// Bypass cache on front page
if( is_front_page() ) $cache_bypass = true;

return $cache_bypass;


add_filter( ‘swcfpc_cache_bypass’, ‘bypass_cache_custom’, 1 );

Can I purge the cache programmatically?

Yes you can. You can purge whole cache using the following code:

global $sw_cloudflare_pagecache;

$error_msg = «»;

if( $sw_cloudflare_pagecache->cloudflare_purge_cache( $error_msg ) ) {
// Cache purged
else {
// Cache not purged. Error on $error_msg

Or purge cache by URLs using the following code:

global $sw_cloudflare_pagecache;

$error_msg = «»;
$urls = array(«first url here», «second url here»);

if( $sw_cloudflare_pagecache->cloudflare_purge_cache_urls( $urls, $error_msg ) ) {
// Cache purged
else {
// Cache not purged. Error on $error_msg


2 de septiembre de 2019
Hi! First of all the plugin is doing great job, but i find strange problem who i was not able to fix on my own i get error msg during publishing new post/page Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'purge_cache_on_post_published' not found or invalid function name in /........./wp-includes/class-wp-hook.php on line 288: $value = call_user_func_array( $the_['function'], array_slice( $args, 0, (int) $the_['accepted_args'] ) ); can you please advice Thank you, Cheers
Leer todas las 3 reseñas

Colaboradores y desarrolladores

«WP Cloudflare Super Page Cache» es un software de código abierto. Las siguientes personas han colaborado con este plugin.

Traduce «WP Cloudflare Super Page Cache» a tu idioma.

¿Interesado en el desarrollo?

Revisa el código , echa un vistazo al repositorio SVN o suscríbete al registro de desarrollo por RSS.

Registro de cambios

Version 1.5 – Added support for WooCommerce, filters and actions
Version 1.6 – Added support for scheduled posts, cronjobs, robots.txt and Yoast sitemaps
Version 1.7 – Little bugs fix
Version 1.7.1 – Fixed little incompatibilities due to swcfpc parameter
Version 1.7.2 – Added other cache exclusion options
Version 1.7.3 – Add support for AMP pages
Version 1.7.6 – Fixed little bugs
Version 1.7.8 – Added support for robots.txt and sitemaps generated by Yoast. Added a link to admin toolbar to purge cache fastly. Added custom header «Wp-cf-super-cache» for debug purposes
Version 1.8 – Solved some incompatibility with WP SES – Thanks to Davide Prevosto
Version 1.8.1 – Added support for other WooCommerce page types and AJAX requests
Version 1.8.4 – Fixed little bugs
Version 1.8.5 – Added support for subdomains
Version 1.8.7 – Prevent 304 response code
Version 2.0 – Database optimization and added support for browser cache-control max-age
Version 2.1 – Fixed warning on line 1200
Version 2.3 – Added support for wildcard URLs