• Resolved WordDug

    (@worddug)


    Hi

    I am using wordpress 3.8.1 with woocommerce 2.1 and the latest Hueman theme. I have reviewed the page speed via https://tools.pingdom.com and noticed that there is excessive strain on the file wp-admin/admin-ajax.php – the actual page loads anywhere from between 635ms to 3secs but wp-admin/admin-ajax.php continues to respond between 5 to 20 secs after the page is loaded.

    I looked into this in more details and discovered that it is Woocommerce sending the requests. Even when I deactivated the plugin and keep it installed this still occurs. I have tested by removing all plugins and its definately woo commerce causing this issue and strain on the db.

    Can you confirm if there is a way to lessen the impact on this file or if this is just how this plugin works?

    Thanks

    https://www.ads-software.com/plugins/woocommerce/

Viewing 2 replies - 16 through 17 (of 17 total)
  • Was this ever fixed?

    Thread Starter WordDug

    (@worddug)

    Hey

    I actually went back and revisited this and I am now using woocommerce without any load issues.

    Basically I have added a function to my child theme functions page to deregister all woocommerce stuff outside of the woo commerce shop pages. Woo commerce adds loads of scripts to your whole site which you dont need on every page. I added the function below.

    https://wordimpress.com/how-to-load-woocommerce-scripts-and-styles-only-in-shop/

    Now I no longer have the wp-admin/admin-ajax.php issue on my homepage or the majority of the website pages. It will still however exist on the shop pages as it is required to make woo commerce work correctly but thats an ok compromise. It improved the speed of my homepage by 2 secs.

    Hope someone else finds it useful.

Viewing 2 replies - 16 through 17 (of 17 total)
  • The topic ‘admin-ajax.php issue’ is closed to new replies.