Very High CPU usage time – email from web hosting asking me to fix it, but idk what is even going on

This topic has 5 replies, 2 voices, and was last updated 1 months, 1 weeks ago ago by Jack Richardson

  • Avatar: Cataclyps
    Cataclyps
    Participant
    March 10, 2025 at 17:35

    This is the email I received from my hosting service :
    Hello,
    I am writing to you regarding the hosting account punkinbg, with the main domain punkin.bg. Our system has recorded increased processor time for this account since last month. The statistics for the processor time used are available in your client profile in the menu “Hosting accounts” > Settings > Advanced system parameters.
    When reviewing the account statistics and logs, I notice that on the site punkin.bg there is a very large number of executions of the admin-ajax.php script. This script is called more than 5 times on each page of the site, and on product pages even more than 10 times. As far as I can see, some of the actions it performs are:
    action: xstore_get_user_wishlist
    action: xstore_get_user_compare
    action: etheme_elementor_menu_cart_fragments
    action: xstore_wishlist_fragments
    action: xstore_compare_fragments
    With such intensive executions, the processor time used by the site also increases. Please review the system settings to try to optimize this behavior.
    In case this is not possible, we can offer you a suitable hosting service with the necessary parameters.

    :

    I need help solving this, because I’ve no idea what to do here.. I’m already on their most expensive plan..

    Please, contact administrator
    for this information.
    4 Answers
    Avatar: Cataclyps
    Cataclyps
    Participant
    March 10, 2025 at 18:11

    I have turned off wishlist and compare, but I do not know how to limit the etheme_elementor_menu_cart_fragments ones. Please limit those if possible.

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    March 11, 2025 at 10:24

    Dear @Cataclyps,

    We hope you are doing well.

    The mentioned action is necessary to ensure the correct update of cart, wishlist and compare fragments within the header content elements. If you wish to completely remove this action, the only way to do so is by deleting the elements that require it. These elements can be found in your mobile menu (https://prnt.sc/S92TnQswsb7H) and in the header https://prnt.sc/P6MbMpzx1h9g).

    Additionally, we recommend reviewing the configuration of the WP Rocket plugin, as it offers various settings that may help optimize the speed of AJAX actions.

    Should you require any further assistance, please feel free to reach out.

    Best regards,
    Jack Richardson
    8Theme Team

    Avatar: Cataclyps
    Cataclyps
    Participant
    March 11, 2025 at 10:43

    I checked WP rocket and did as suggested in their post – https://prnt.sc/TX3r_ShlXJ60 – added the plugin, yet it changed nothing… THis is the blog post https://docs.wp-rocket.me/article/999-disable-woocommerce-cart-fragments-ajax

    But it did nothing to change it. I saw a different topic about this – https://www.8theme.com/topic/wbsite-loads-slow-reduce-admin-ajax-php/#post-407635 – But I still have no clue how to resolve the admin-ajax on cart elements

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    March 11, 2025 at 16:37

    Dear @Cataclyps,

    The plugin mentioned in their post is related to the default functionality of the WooCommerce plugin. However, your inquiry pertains to AJAX requests generated by our theme. The suggested plugin does not remove such actions within its code.

    Additionally, upon reviewing your website, we noticed that you have removed extra elements from your mobile menu, which has now optimized the fragment refresh to its limit. Furthermore, we tested your website using GTmetrix, one of the most popular performance testing tools, and it achieved an excellent “A score” with “91% performance” (https://prnt.sc/dZmi1zt8AQ5P). This indicates that your website is already well-optimized and performing at a high level.

    For your reference, we have attached the test results in the private area.

    Best regards,
    Jack Richardson
    8Theme Team

    Please contact administrator
    for this information.
  • Viewing 5 results - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.Log in/Sign up

Helpful Topics

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.