Home › Forums › WoodMart support forum › Website has Become Super Slow Suddenly
Website has Become Super Slow Suddenly
- This topic has 12 replies, 2 voices, and was last updated 7 months, 1 week ago by
Luke Nielsen.
-
AuthorPosts
-
July 14, 2024 at 12:12 pm #583213
bishalstha76ParticipantHi,
My website has become super slow suddenly. It’s been taking like 8 minutes just to load one page. I was checking with the hosting and they said this:
___________________________________________________________
“I have completed a full investigation of your server, examining all potential causes for the high CPU usage issue. I have checked cron jobs, bot traffic, slow PHP pages, and slow MySQL queries, among other possibilities. Let me go ahead and guide you through the findings and provide assistance accordingly.I can see high hits to admin-ajax.php in just one hour duration. There’s an easy and quick option to control this by installing a plugin named “Heartbeat Control by WP-Rocket” and modifying the heartbeat to 200 or more seconds.
____________________________
I tried their solution and the problem is still the same:
________________
“Roxyaquarium.com.au is sending a lot of admin-ajax requests to your application, even after increasing the heartbeat time.”
______________________________________________
“I have enabled the Cron Optimizer, would you please let me know about these requests as it’s causing load on your application:admin-ajax.php?action=woodmart_get_fragment_product_category_compare
async runner”
____________________________________________________What is creating the admin-ajax request. Would you be able to help please?
Kind Regards,
BijanJuly 15, 2024 at 3:47 am #583263
bishalstha76ParticipantHi,
Please find what cloudways had to say:
____________________________________________________
As we have analyzed the logs we found that.Several requests involve WooCommerce actions like wc-ajax=get_refreshed_fragments,
indicating it’s updating the cart or product fragments. This request is part of WooCommerce’s AJAX functionality to update cart fragments or similar dynamic content.action=woodmart_get_fragment_product_category_compare: This request likely relates to a feature of the Woodmart theme or a related plugin to compare product categories.
Kindly check by changing the theme to the default theme. We recommend you to deploy a staging site and perform the testing there to control the admin ajax requests.As we have analyzed the logs we found that.
Several requests involve WooCommerce actions like wc-ajax=get_refreshed_fragments,
indicating it’s updating the cart or product fragments. This request is part of WooCommerce’s AJAX functionality to update cart fragments or similar dynamic content.action=woodmart_get_fragment_product_category_compare: This request likely relates to a feature of the Woodmart theme or a related plugin to compare product categories.
Kindly check by changing the theme to the default theme. We recommend you to deploy a staging site and perform the testing there to control the admin ajax requests.
________________________
Please let me know.July 15, 2024 at 9:23 am #583274
bishalstha76ParticipantHi Team,
So I changed the theme in live site to ” Storefront” and the website was running fast and fine. I changed back the theme and the website is still super slow. Please let me know what we can do about it. Cloudways is still looking further into this.-
This reply was modified 7 months, 3 weeks ago by
bishalstha76.
July 15, 2024 at 12:27 pm #583350
Luke NielsenKeymasterHello,
May I disable 3rd party plugins and enable parent/default theme for testing?
Looking forward to hearing back from you!
Kind Regards
July 15, 2024 at 4:25 pm #583455
bishalstha76ParticipantHi,
Yes please go ahead.
Also response from cloudways:
___________
Thank you for your patience, we have checked the server and the load is mostly caused by the wp-admin Ajax calls from the IP 159.196.168.101 and preload requests from the wp-rocket plugin. Couldyou please kindly disabled preload in wp-rocket for some time and also confirm if the IP belongs to you?
______________________________
That is not my IP address. My IP is : 203.214.82.103
________________________________________
The stats are for the last one hour on the app with database sfpusfrfdg , picture attached.Where exactly is this admin ajax request coming from, and from inspect, it shows compare feature, I have no other plugin installed that has compare feature.
Please let me know.
Attachments:
You must be logged in to view attached files.July 15, 2024 at 6:15 pm #583493
bishalstha76ParticipantHi,
Just another error I encountered. Please check the attachment
Attachments:
You must be logged in to view attached files.July 16, 2024 at 2:22 pm #583680
Luke NielsenKeymasterHello,
Without 3rd party plugins, it started to work well – https://take.ms/6JQtx
So I suggest disable all plugins except these ones:
Elementor or WPBackary
Woodmart Core
WooCommerce
Enable the Parent themeThen activate the plugins one by one, checking the issue to detect which one causes the request problem.
Let me know the result. Also, after enabling back plugins, such issue occurs – https://take.ms/fstpB
Kind Regards
-
This reply was modified 7 months, 2 weeks ago by
Luke Nielsen.
July 17, 2024 at 6:57 am #583800
bishalstha76ParticipantHi Luke,
My main query was regarding admin-ajax issue I mentioned.
_________________________________________
Regarding the error on checkout page issue, that started after this:
https://xtemos.com/forums/topic/variable-product-dropdown-to-text-swatch-not-working/
So I had another issue which is working now, So I followed the instruction and updated woodmart theme and required plugins which included: Elementor, SaveSVG Contact form 7, I think there was couple more, and I updated Woocommerce.
The website crashed after I updated woocommerce, For some reason the woocommerce was deactivated, upon activation from backend, website started woking but that issue started showing up.So I followed your instructions and found out “WOOPAYMENTS” Plugin is the issue, when deactivated it doesn’t give the error anymore.
Somehow the issue started after updating the theme and woocommerce. What do you think is the reason?____________________________
My main query:
Please find the attached image error that shows in the website. I’m told the admin-ajax issue keeps getting sent to the server causing overload and result in slow website.So I activated “Storefront” default theme
And the issue show no more as you see in the picture attached.
Please let me know how do we fix that.Attachments:
You must be logged in to view attached files.July 17, 2024 at 2:27 pm #583955
Luke NielsenKeymasterHello,
Looks like the server blocks that admin-ajax file – https://take.ms/RBM4k
I suggest you contact server support and ask them to check the permissions because as you can see, something blocks that file.
Kind Regards
July 20, 2024 at 8:08 am #584521
bishalstha76ParticipantHi,
Here’s what the server team say:
__________________________________________
We hope this finds you well. Thank you so much for reaching back to us. We have checked and here the guide for your help.https://www.cloudways.com/blog/wordpress-ajax/#speed-up-wordpress-dashboard%EF%BB%BF
https://www.businessbloomer.com/woocommerce-why-how-to-disable-ajax-cart-fragments/#how-to-disable-woocommerce-ajax-cart-fragmentsAlso checked and there is a rule added in the htaccess file for the temporarily blockage for the ajax file, in order to keep the load reduced. Here is the screenshot of the rule added in the file.
<Please check attached file for code>
________________________________________________________________________So when I created this thread, there was a serious issue when website wasn’t loading at all. So they told me it was temporarily fixed but need to be fixed on our end to fix the issue. The request is blocked at the moment so the website is working for now.
Again:
When I changed the theme to storefront, the issue was gone.
If you would like to check on that, please find the staging site access details attached.Attachments:
You must be logged in to view attached files.July 22, 2024 at 10:25 am #584691
Luke NielsenKeymasterHello,
Navigate to Theme Settings -> Shop -> Compare -> turn off the “Enable compare by category” option: https://take.ms/K1U07. Clear the site/server cache and recheck the isssue.
Kind Regards
July 23, 2024 at 3:28 am #584951
bishalstha76ParticipantHi Luke,
Thank you. The error is gone as I turned off that option. The website seems to be faster too. I just wanted to understand the problem. What exactly caused the error?
Also turning off the feature means we cannot use it correct? We haven’t used that feature before and I don’t see myself to be required, that feature for us. But suppose If I need the feature to be used(which i don’t really think so), just asking to understand the issue again, how would that need to be fixed?
July 23, 2024 at 11:55 am #585052
Luke NielsenKeymasterHello,
Unfortunately, we cannot tell you with certainty what the problem is, but in order to say it for sure, we need FTP access to the site and you need to return all the changes you made to the site and server settings so that the page loads for a long time in order to check it in more detail.
Kind Regards
-
This reply was modified 7 months, 3 weeks ago by
-
AuthorPosts
- You must be logged in to create new topics. Login / Register