Our webhost has CF integrated functionality in Cpanel and that is set to active. We have also set-up the CF plugin in Wordpress to be active. We have also installed and configured the ’ WP Cloudflare Super Page Cache’ Wordpress plugin and that, too, is active.
CF is RUNNING, but it is not CACHING. It has the following status for our website:
Our webhost has CF integrated functionality in Cpanel and that is set to active. We have also set-up the CF plugin in Wordpress to be active. We have also installed and configured the ’ WP Cloudflare Super Page Cache’ Wordpress plugin and that, too, is active.
CF is RUNNING, but it is not CACHING. It has the following status for our website:
How can we make Cloudflare cache our sites please?
We’ve wasted many days trying to set things up with Cloudflare and its demoralising to not see the cache work on our different websites, so would very much appreciate some guidance please.
Thank you very much. I greatly appreciate your co-operation.
If your WP site is static, meaning it does not contain pages with content that vary based on the login status of the visitors, and it does not accept comments from visitors, you can set two rules to make Cloudflare cache the HTML of pages and posts.
You merge together your first two rules:
URL: www.example.com/wp-*
Security Level: high
Disable Rocket Loader,
Disable Apps
URL:www.exeample.com/*
Cache Level: Cache Everything
Browser Cache TTL: a day
Edge Cache TTL: 30 days
The first rule will apply to both /wp-login.php and /wp-admin/* files, as well as to /wp-content/* and other wp-* files. For that reason, no caching policy should be set, letting Cloudflare apply the default accordingly (no caching for /wp-login.php and /wp-admin/* files, but standard caching for /wp-content/* static files).
The second rule will apply to the front end, caching all pages and posts for a day at the browser, for longer at the edge (CF datacenters), until they are purged somehow, which you can do automatically by using the Cloudflare plugin.(Auto Purge Content On Update)
Thank you ever so much! That’s hugely appreciated.
Just for my curiosity, why do we need to disable Rocket Loader please?
Importantly, you mention that the rules are for a site that “does not accept comments from visitors”. A couple of our blogs do (e.g. https://www.azam.info/ ). So does that mean they can’t be classified as ‘static’?
What settings should we set for such blogs please?
Rocket Loader will improve the speed of your front end, but can have bad side-effects on your backend. Many users have reported here in the community that RL interferes with page builders, such as Elementor, WPBakery (formerly Visual Composer) etc.
You want comments to be available as soon as the are posted, and cached pages will not deliver that. You should check APO, a recent, paid Cloudflare service that will cache only pages that are static. I don’t have experience running it, nor any other settings that will work for a blog with comments.
If you have an internal comment system, such as WordPress’ built-in Comments, then the site isn’t Static and shouldn’t be cached as such. You’d need more intelligent caching such as what the paid feature APO offers.