A possible way of doing the diagnosis is to use a plugin to trace which queries are taking so much time to execute.
To do so you can use this plugin:
https://wordpress.org/plugins/query-monitor/
With that information, it will get easier to work on an optimization.
Thread Starter
soamz
(@soamz)
Installed it and went to POSTS page, i see this
http://prntscr.com/i36gwo
Moderator
t-p
(@t-p)
Slowness/high CPU usage could be due to (but not limited to):
– A poor or memory intensive theme. Switch to the WordPress default theme and test loading time and see if you see a difference. If you do, may be your theme can be re-written to be more efficient.
– Poor or memory intensive plugins. One by one disable plugins and test loading time and see if you see a difference. If you do, may be that plugin can be re-written to be more efficient.
– your server is slow (e.g., “process hang”, overload, you get a lot of visitors, other problems, etc.); generally, every inexpensive host out there is slow.
– I don’t know if you use CloudFlare or not but if you do I would suggest deactivating it and seeing if it helps. Also sometimes a good purge of the cache on CloudFlare can help.
– Lots of images can cause slowness. Also images loaded without compression.
– Lots of external content (facebook/ gravatar/ google adds, etc.) and redirects in general tends to slow sites down.
The pingdom, etc., report tells you exactly what is wrong with your site: https://tools.pingdom.com/
https://gtmetrix.com/leverage-browser-caching.html ; https://developers.google.com/speed/pagespeed/insights/
Use plugins to optmize/speed up sites, for example:
Autoptimize
WP Super Cache , etc.
If needed, use Jetpack’s Photon option to speed up image delivery.
Ueful codex: – http://codex.wordpress.org/WordPress_Optimization
Moderator
t-p
(@t-p)
By the way what version WP are you using?
Thread Starter
soamz
(@soamz)
There is no issue with the frontend.
Tools like gtmetrix and pingdom will help for frontend only, not for backend.
The issue here is backend, dead slow
Thread Starter
soamz
(@soamz)
Running the query plugin, I see those taking time
http://prntscr.com/i36qzu
Thread Starter
soamz
(@soamz)
Also this takes 6 seconds alone.
http://prntscr.com/i36s9q
Out of the 10 seconds load time refresh time, 6 seconds by this updater check,
http://prntscr.com/i36s9q
Can I simply stop this updater check somewhere ?
Moderator
t-p
(@t-p)
External requests are taking a long time in general. Your server’s outgoing Internet connection is sub-optimal. The Page Builder plugin slows down the back end in many ways. I’ve no direct experience with it. Could you mostly leave it deactivated except when actively building a page?
I cannot speak for Page Builder, but WP should not be checking for updates on every back end request. If that is indeed happening, something quite odd is going on with WP CRON.
Thread Starter
soamz
(@soamz)
@bcworkz No issues with my internet.
Im the ISP itself and the website along with my other websites are all hosted in my own datacenter, runnings 100000+ clients without any issues.
Its just this website, which is acting weird.
I have disabled all plugins and themes and tried, still same.
How to debug for WP CRON ?
Thread Starter
soamz
(@soamz)
@t-p I HAVE defined this in my wp-config now
– http://prntscr.com/i37jce
But still I dont see any changes.
Look at the option ‘cron’ where all scheduled CRON events are stored. The update plugins action is supposed to be scheduled to run every 12 hours (43200 sec in the CRON events array). The next timestamp after which it will fire leads off the array in which the related action occurs. If that all appears correct, CRON is malfunctioning. Trace through wp-cron.php and figure out why it’s firing too often. If anything else update related is scheduled, search through code and find out what’s scheduling the event too often. The clue to search for is the action tag name in the ‘cron’ array.
I suggest first doing a manual update from a fresh download, except you’d be using the same version to refresh all files. It could solve the issue and it’s much easier than debugging.
-
This reply was modified 6 years, 3 months ago by bcworkz.