Home Forums WoodMart support forum Website Very Slow At Times Massive Ajax Hits

Website Very Slow At Times Massive Ajax Hits

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #678487

    bishalstha76
    Participant

    Hi,
    My website gets very slow frequently throughout the day. I’ve been optimizing the website so much, and added cloudflare enterprise so website speed in “general” is good. The problem is, when traffic comes in, it gets sooo slow, I’m not talking about a lot of traffic, even like 5 people, if they’re browsing lot of pages, it gets super slow.
    I’ve been talking with cloudways team and trying to fix the issue. I have even tried to hire someone to work on the website.
    I am talking with someone on fiver to optimize admin ajax, but no luck.

    Cloudways team say that there are a lot of admin ajax hits in the website.

    My biggest issue at the moment is the admin ajax that need to be optimized.
    And ,
    When I get even 1 bot visiting the website a lot, that causes website to be super slow. I also wanted to know best I can do for security. I have been using wordfence, cloudways said wordfence is one of the reason slowing the website.
    Please let me know if there is a way i can make the issue better. I have been getting a lot frequent bots that make website slow.

    Please let me know the soution. I will attach some comversations with cloudways.

    Attachments:
    You must be logged in to view attached files.
    #678489

    bishalstha76
    Participant

    More details attached

    Attachments:
    You must be logged in to view attached files.
    #678498

    Artem Temos
    Keymaster

    Hello,

    Your screenshot shows the number of requests to the admin-ajax.php file, but it doesn’t make any sense because there are no details. It is not clear whether it is the number of requests per day/month or per second. Also, the admin-ajax.php file handles all the AJAX requests in the WordPress system, not just from the theme. So it should be one parameter called action to understand if these requests are related to our theme or not.

    Bots can load your website a lot by making a high number of requests per minute. If your website is not properly cached and your server has low resources, it is natural that your website will be slow, and it is not something that our theme is responsible for. You can use tools like Cloudflare to block some requests, block particular bots, or add extra security rules.

    Kind Regards

    #678505

    bishalstha76
    Participant

    Hi,
    Thank you for your reply. I am not saying theme has issues. That ajax hits I think was in 1 hour. Are you able to help me understand better with what things I can do to reduce the ajax load. Even it means turning off or removing some features. Where can I get the action logs?
    If it helps, I have provided login detail.
    This is causing a lot of issues for us. We’re on the edge on giving up woocommerce and using shopify.
    Any help is much appreciated.

    #678507

    Artem Temos
    Keymaster

    Hello,

    We would be happy to help, but there is no single “button” to fix this or understand where these requests come from. You need to check your server logs to get more information about each AJAX request. You can also try to disable every AJAX function in our theme, for example, to see if it changes anything.

    And you need to use some security tools like Cloudflare (if it is possible on your hosting). Switching to Shopify will not free you from a high number of requests from bots.

    Kind Regards

    #678569

    bishalstha76
    Participant

    Hi,
    Please find link of slow php logs below.
    Also can you please guide me where and how I can disable ajax function in the theme?

    The reason I mentioned shopify is because every single shopify websites I visited have been very fast, and I heard serurity is handled by shopify themselves. The slowness in the website and sudden cpu load spikes, has certainly made us loose customers, orders and much of time to keep working on the issue.

    #678583

    Artem Temos
    Keymaster

    Hello,

    As we can see, these requests are related to the Wordfence plugin. Check this screenshot https://gyazo.com/d63b31e65dd225c3e8967e877f56fb90

    You can use search in Theme Settings and disable all AJAX functions like AJAX add to cart and filters.

    Kind Regards

Viewing 7 posts - 1 through 7 (of 7 total)