Since adding Cloudflare to my wordpress site, my admin page is extremely slow and continuously timing out. What can I do to correct this situation?
Hey there. You (most likely) need to add a Page Rule for wp-admin to bypass cache. Check out this video around the 3:30 mark
For easy reference, I am sharing a screenshot of the Page Rule suggested in the video for the WP Admin area -
Do you use Railgun?
Try to turn off Railgun first and then clear cache
Is it still slow or timing out?
You should also review the the tips @junade put together in this KB article. They may be helpful.
Same problem. Page rule has not helped yet.
I am having the same problem … managed WP with godaddy, Cloudflare plugin, page rule to skip /wp-admin* but still doesn’t work. Site is running fine but wp-admin is painfully slow or non-responsive. If I remove Cloudflare then all is nice and fast again… Free Cloudflare account but I am more that willing to pay if that is the solution
I don’t believe you should need to have a paid plan to improve this. Probably best to submit a detailed report to support, login to Cloudflare and then contact Cloudflare Support so they can look at what’s happening.
Thanks for the suggestion, appreciate it. Though it seems that WPML might be causing this so I am in contact with them now. Turning WPML off puts WP-admin back to normal. I have a copy using DesktopServer and there all is good, but coupled with Cloudflare online then it doesn’t work, but WPML seem to have had this problem before so hopefully they have a solution (if not then I’ll just scrap WPML).
My website http://www.archuae.com/ is also a wordpress website…I also need to add my website to cloudfare…your issue sloved??
Good morning
Please have you been able to resolve the issue of the wordpress admin timing out ?
I have tried all I can its still the same
Another 5 month later… Any update on the slow WP admin?
I run a few WP sites on different servers. All fine with normal speed /wp-admin/, but one.
As already established, the page rule does not do anything.
Sometimes a page save can take 30 Seconds, sometimes ending in a timeout. WP runs fine without cloudflare.
So I wonder why is that? It’s something in the CF/WP communication.
When saving menus the automated cache purge is triggered too many times · Issue #275 · cloudflare/Cloudflare-WordPress · GitHub might be related.
That is an interesting read. I am still puzzled why only one server setup causes issues. Something related to fastCGI maybe?
That’s certainly an interesting issue. I suppose someone either closely monitored their outbound traffic, or they saw a ton of requests in the Audit Log. Any idea which?
If it’s not the deluge of Purge requests, then it’s not related to that GitHub issue.
Just another try with wordpress - really slow admin, basically not loading at all.
So I tried a “Pause Cloudflare on Site” and the site was immediately up to speed. So one workaround for the slow admin panel is to pause Cloudflare while you work on it.
The point I don’t get is why Page Rules for /wp-admin/ have no effect at all.
That is purely related to your backend origin server configuring web server, PHP and database. Cloudflare doesn’t cache or impact bypassed HTTP POST requests when you save settings etc. I have never had problems with Wordpress admin speed behind cloudflare as I run an optimal configured web server/PHP/database server configuration. The timeouts can also depend on what you’re saving at a particular point in time as ultimately that would depend on how fast MySQL data response passes to PHP and to your web server.
It can also be other requests queuing up database/PHP processes and your wp-admin requests just hit that threshold in the queue too.
If you have root server as to your server, you can log MySQL slow queries and if using PHP-FPM can also log slow requests and pinpoint your issues. If you have an APM monitor like Newrelic, you can also monitor your stack’s processing times through PHP and database calls to drill down and diagnose where the issue is at a specific point in time.
Example with Newrelic and Wordpress admin page breakdown of processes
I tried New Relic but it failed to install. Logically it’s not making sense to me. Right now I am pausing cloudflare for this site. This said, the front end has from time to time 520/522 errors, but it largely ok. It’s better when I use a near server VPN. There seems to be also no difference between between Letsencypt (most sites) and CF SSL.
❌ Checking for data in New Relic (this may take a few minutes)...failed.
==> Installing infrastructure-agent-installer...failed.
ERROR execution of infrastructure-agent-installer failed, please see the following
link for clues on how to resolve the issue:
https://docs.newrelic.com/docs/using-new-relic/cross-product-functions/troubleshooting/not-seeing-data/
One or more integrations failed to install. Check the install log for more details:
/root/.newrelic/newrelic-cli.log ***[no such log]***
New Relic installation complete!
Your data is available at https://one.newrelic.com/redirect/entity/W
FATAL We encountered an error during the installation: encountered an error while
validating receipt of data for infrastructure-agent-installer: reached max validation
attempts. If this problem persists please visit the documentation and support page
for additional help here:
I installed again, some errors. However the site shows some data.
Is there any WP Plugin required? I got one from 10up or so, but that doesn’t show in the panel (it said only up to WP 5.3 - I use 5.7). Seems also NR needs PHP5, I don’t have that installed.
Update: after a few more cURLs and whatnot I see some data. The 10up app still not working, and gone, but the rtcamp plugin accepted the key.