Plugin / WP Cloudflare Super Page Cache

Salvatore Fresta

Installation

Installation

FROM YOUR WORDPRESS DASHBOARD

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

FROM WORDPRESS.ORG

  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?

Yes.

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
}

Ratings

4.8
4 reviews

Rating breakdown

Details Information

Version

2.4

First Released

19 Feb, 2019

Total Downloads

1,099

Wordpress Version

3.0.1 or higher

Tested up to:

5.3

Require PHP Version:

-

Tags

Contributors

This plugin has been closed.

Languages

The plugin hasn't been transalated in any language other than English.

DIRECTORY DISCLAIMER

The information provided in this THEME/PLUGIN DIRECTORY is made available for information purposes only, and intended to serve as a resource to enable visitors to select a relevant theme or plugin. wpSocket gives no warranty of any kind, express or implied with regard to the information, including without limitation any warranty that the particular theme or plugin that you select is qualified on your situation.

The information in the individual theme or plugin displayed in the Directory is provided by the owners and contributors themselves. wpSocket gives no warranty as to the accuracy of the information and will not be liable to you for any loss or damage suffered by you as a consequence of your reliance on the information.

Links to respective sites are offered to assist in accessing additional information. The links may be outdated or broken. Connect to outside sites at your own risk. The Theme/Plugin Directory does not endorse the content or accuracy of any listing or external website.

While information is made available, no guarantee is given that the details provided are correct, complete or up-to-date.

wpSocket is not related to the theme or plugin, and also not responsible and expressly disclaims all liability for, damages of any kind, arising out of the use, reference to, or reliance on, any information or business listed throughout our site.

Keep Leading Your Followers!
Share it for them.