APO works best when the WordPress plugin is used. We do not recommend using APO without the plugin installed. If you face issues with Cloudflare detecting the plugin then follow these steps: 1. Go to Cloudflare WordPress plugin 2. Disable APO in the card 3. Enable APO in the card (will set proper settings for APO feature) 4. Cloudflare notes that its testing shows that for HTML Time to First Byte (TTFB), APO provides consistent load times of less than 400ms. The results of using APO are similar to hosting static files on a CDN, but without a complex tech stack having to be handled.
- APO allows Cloudflare to serve your entire WordPress site from its edge network ensuring consistent, fast performance for visitors no matter where they are. Find out more in our announcement blog.
- APO for WordPress improves site performance in multiple, major ways. Typically Cloudflare only caches static content, but with APO, Cloudflare can also cache dynamic content like HTML so the entire site is served from cache. Third-party fonts are cached and served by Cloudflare.
- There seems to be an issue with the new Cloudflare APO (Automatic Platform Optimization) feature which blocks both admins and then real users.Here is another user mentioning it on the Cloudflare plugin support page:
https://wordpress.org/support/topic/apo-for-wp-causes-wordfence-bans-for-logged-in-users/Also something here on the Cloudflare main support pages:
https://community.cloudflare.com/t/automatic-platform-optimization-enabled-i-no-longer-see-visitor-ip/210241Not sure how to resolve this but I have disabled APO for now.Thanks,
Mike
- I’ve had that issue a few times this morning. It sees my login as coming from a CloudFlare server in the US with an IPv6 address and not my normal UK IPv4 version.
- The topic ‘Cloudflare APO Issue’ is closed to new replies.
Description
What this plugin can do for you
Automatic Platform Optimization (APO)
Take your WordPress site’s performance to the next level with Automatic Platform Optimizations (APO). APO allows Cloudflare to serve your entire WordPress site from its edge network ensuring consistent, fast performance for visitors no matter where they are. Find out more in our announcement blog.
One-click WordPress-optimized settings
The easiest way to setup Cloudflare for your WordPress site. Let us configure Cloudflare with the tried and true settings for an optimal experience.
Web application firewall (WAF) rulesets
Available on all of Cloudflare’s paid plans, the WAF has built-in rulesets, including rules specifically tailored to mitigate WordPress threats and vulnerabilities. These security rules are always kept up-to-date, once the WAF is enabled, you can rest easy knowing your site is protected from even the latest threats.
Automatic cache purge on website updates
If you don’t take advantage of the performance benefits of Automatic Platform Optimization for WordPress, using the Cloudflare plugin still ensures that changes to the appearance of your website purge the cache. This means that you can focus on your website, while we ensure that the latest static content is always available to your visitors.
Additionally, Cloudflare’s plugin for WordPress automatically refreshes the Cloudflare cache of static content for each post/page/custom post type when you update the content.
Additional features
- Header rewrite to prevent a redirect loop when Cloudflare’s Universal SSL is enabled
- Change Cloudflare settings from within the plugin itself without needing to navigate to the cloudflare.com dashboard. You can change settings for cache purge, security level, Always Online, and image optimization
- View analytics such as total visitors, bandwidth saved, and threats blocked
- Support for HTTP2/Server Push
Installation
Prerequisite
Make sure your PHP version is 7.2 or higher.
From your WordPress Dashboard
- Visit “Plugins” → Add New
- Search for Cloudflare
- Activate Cloudflare from your Plugins page.
From WordPress.org
- Download Cloudflare
- Upload the “cloudflare” directory to your “/wp-content/plugins/” directory, using ftp, sftp, scp etc.
- Activate Cloudflare from your Plugins page.
Cloudflare Dns Api
Once Activated
- Go to https://dash.cloudflare.com
- Login with your cloudflare account. If you don’t have a Cloudflare account, first sign up for Cloudflare.
- Navigate to the API Tokens section of the user profile (found in the top right corner of the dashboard).
- Select ‘Create Token’
- Select the ‘WordPress’ Template
- Select the Account and Zone to grant the plugin access to
- Then select “Continue to Summary” and “Create Token”
- Copy your API Token
- Return back to WordPress Cloudflare Plugin page
- Enter your email address and paste your API Token
- Press Login.
FAQ
Do I need a Cloudflare account to use the plugin?
![Apo Apo](/uploads/1/3/4/7/134729395/146121151.png)
Yes, on install and activation of the plugin, first time users will be asked to enter their email address (used to sign-up for an account at cloudflare.com) and either an API Token or their API key. This is needed to support all the features offered by the plugin.
What settings are applied when I click “Apply Default Settings” in Cloudflare’s WordPress plugin?
You can review the recommended settings that are applied here.
What do I do if Cloudflare does not detect the WordPress plugin for use with APO (Automatic Platform Optimization)
APO works best when the WordPress plugin is used. We do not recommend using APO without the plugin installed. If you face issues with Cloudflare detecting the plugin then follow these steps:
1. Go to Cloudflare WordPress plugin
2. Disable APO in the card
3. Enable APO in the card (will set proper settings for APO feature)
4. Clear any server cache used via other plugins (WP Rocket being an example)
5. Verify that your origin starts serving response header “cf-edge-cache: cache,platform=wordpress”
1. Go to Cloudflare WordPress plugin
2. Disable APO in the card
3. Enable APO in the card (will set proper settings for APO feature)
4. Clear any server cache used via other plugins (WP Rocket being an example)
5. Verify that your origin starts serving response header “cf-edge-cache: cache,platform=wordpress”
You can read more about APO with WordPress here
Does the plugin work if I have Varnish enabled?
Wordpress Cloudflare
Yes, Cloudflare works with, and helps speed up your site even more, if you have Varnish enabled.
Cloudflare Api Key
Reviews
Cloudflare Edge Cache
Too bad that it is so buggy, since it's actually a good idea. But the plugin is very badly coded, doesn't work on many websites, including mine (