Is WP Rocket compatible with Cloudflare APO?
Cloudflare APO is not compatible with WP Rocket's Cloudflare add-on. This means WP Rocket and Cloudflare's cache layers will not be synced.
Therefore, for websites using dynamic content, you’ll need to disable the WP Rocket Cloudflare add-on and use the official Cloudflare plugin instead.
You can still use WP Rocket but you'll need to manually clear Cloudflare's APO cache, using the official plugin, after you've changed your settings in WP Rocket.
However, if you have a static website, you can enable the Cache Everything feature in your Free Plan, as the Cloudflare APO service is similar to the Cache Everything feature. The Free plan has 3 page rules that can be used to include or exclude pages that needs to be cached or excluded.
To do so, follow these few steps:
- In WP Rocket, enable and set the Cloudflare add-on
- Activate the Optimal Settings option in this add-on (recommended)
- From the Users > Your Profile page as shown here, uncheck the “Show toolbar when viewing the site” box to prevent the admin bar from being displayed on the front end of the site, in order to avoid the admin bar to be cached.
- In your Cloudflare account, from the Page Rules tab, activate the Cache Everything feature by creating your page rules.
Remember this solution will only suit static websites.