Since a while a woocommerce webshop that I made loads extremely slow.
We looked for a solution by upgrading to a Managed WP hosting but with no result.
What’s particular is that the wordpress site is constantly spiking to 100% CPU and RAM usage. The hosting party tried helping us and even upgraded the hosting package, but still the website kept using 100% of all resources (cpu & RAM).
Since the hosting party can’t seem to find any solution or cause, I am quite desperate right now. If someone knows a way to diagnose or solve this issue it would help a lot!
Thanks for all the help in advance!
Kind regards,
Julius
My WooCommerce page is very slow as there is some slow queries being triggered.
I am not able to fix this class function as it is taking more than 4 seconds just to calculate count.
Backtrace:
WP_Posts_List_Table->__construct
_get_list_table
Query
SELECT COUNT( 1 )
FROM wp_posts
WHERE post_type = 'shop_order'
AND post_status NOT IN ( 'trash','auto-draft','inherit','request-pending','request-confirmed','request-failed','request-completed','dp-rewrite-republish' )
AND post_author = 1
Time Taken by this Query: 4.1015 Seconds
I have done optimisation with this wordpress query but I am not able to override the above function.
Optimised Query
SELECT?SUM(temp.num_posts)?as?total?FROM?(SELECT?post_status,?COUNT(?*?)?AS?num_posts?FROM?wp_posts?WHERE?post_type?=?'shop_order'?AND?post_status?=?"wc-cancelled"?UNION?ALL?SELECT?post_status,?COUNT(?*?)?AS?num_posts?FROM?wp_posts?WHERE?post_type?=?'shop_order'?AND?post_status?=?"wc-completed"?UNION?ALL?SELECT?post_status,?COUNT(?*?)?AS?num_posts?FROM?wp_posts?WHERE?post_type?=?'shop_order'?AND?post_status?=?"wc-pending"?UNION?ALL?SELECT?post_status,?COUNT(?*?)?AS?num_posts?FROM?wp_posts?WHERE?post_type?=?'shop_order'?AND?post_status?=?"wc-on-hold"?UNION?ALL?SELECT?post_status,?COUNT(?*?)?AS?num_posts?FROM?wp_posts?WHERE?post_type?=?'shop_order'?AND?post_status?=?"wc-refunded")?as?temp
Time Taken by this Query: 950ms Seconds
Time taken is way better than what we already have with wordpress, Is there a way to override this function and optimise it according to above query.
]]>I have two site both use the same theme and identical plugins also both hosted on Amazon AWS Lightsail
The first site is very slow when create/update a NEW post is taking long time for page load with editor
1st (SLOW) site 5 Years old – https://bit.ly/3k9mKMz – 82000 posts
– Instance set in Ohio USA (I am in US)
– 32 GB RAM, 8 vCPUs, 640 GB SSD Bitnami WordPress Instance
– 2 GB RAM, 1 vCPU, 80 GB SSD MySQL database (8.0.21)
– W3 Total cache PRO EDITION
2nd (FAST) site 3 weeks old – https://bit.ly/3q6QrQ1 – 18 posts
– Instance set in Frankfurt, Germany
– 2 GB RAM, 1 vCPU, 60 GB SSD Bitnami Instance
– MySql hosted on the same instance (no 2nd separate server)
– W3 Total cache FREE EDITION
THE QUESTION IS:
THE TIME LOADING FOR EDITOR DIFFERENCE IS BECAUSE THE FIRST SITE HAS OVER 82000+ POSTS VS 18 ?
THE FIRST SITE HAVE VERY POWERFUL SERVER VS 2ND
This is also a big difference with front page load where the 2nd site with much smaller hosting package hosted in germany WIN the race! — https://gtmetrix.com/compare/mljG5qe8/9qO35IqP
Please help
Arthur
]]>
As you can see the slowest part is ‘Wait’. I’ve tried to disable some plugins but no effect on TTFB.
I also use P3 Plugin Performance Profiler plugin for checking slow plugins.
Clearly the plugins are pretty fast and even the site loads below 0.5 second.
TTFB above 1 second is a really big problem because it can affect SERP. Especially considering most other competitors’ TTFB about 0.5 second or even less. Other people say they can get about 0.5s using WordPress on Bluehost.
I’ve contacted Bluehost support but they say I have to optimize my site. As they suggest, I’ve run repair and optimize query on database and also run wp-optimizer plugin. But no effects at all.
Is there any recommendations what should I do?
]]>I am working on some bottlenecks, and doing some optimizations on my WP website; I am very interested in reducing time load of web pages, so I’m testing each plugin installed and now it’s your turn
Using Query Monitor, I noticed that sometimes (i.e I suppose via WP cron-job) this function is called:
Psn_Notification_Postponed->_getAll()
and this seem to slow home page just sometimes… so I would ask if there is a way to improve this and /or make available an options for changing it (i.e making less frequent).
Hope my question is clear, thanks in advance!
]]>I’m using latest WP on a custom installation (shared hosting by OVH, btw), with child theme + about 15 plugins + mu-plugins; all are strictly necessary, by the way, for site functions and features. All my customers say that website is very slow on first load, I suppose is a critically slow TTFB so I made some test and there is the results:
https://imgur.com/gallery/gRpa0
Take a look to the first, yellow line: what is happening here? I really cant understand that; btw, is not plugin related, I tried to disable and it’s the same.
Is there a way to act on this aspect specifically? Could be my server so bad? Meanwhile I’m trying to install on another hosting. Any help or suggestion / hint would be appreaciated, thanks in advance
]]>