Admin-ajax.php performance issue - by howard

This topic has 4 replies, 2 voices, and was last updated 5 years, 5 months ago ago by Olga Barlow

  • Avatar: chihao.weng
    howard
    Participant
    June 28, 2020 at 03:42

    I’ve noticed you use wp-rocket as a cache way to improve performance, so am I.

    However, there is one major performance issue difference between your demo page and my site.

    In your demo site , an admin-ajax.php only takes 429ms to get product data.
    My admin-ajax.php takes 3455ms to get product data.

    What is the different setting between you and me ??

    My ajax image:

    Your ajax image:

    3 Answers
    Avatar: Olga Barlow
    Olga Barlow
    Participant
    June 29, 2020 at 08:23

    Hello,

    admin-ajax.php allows running AJAX calls from the web-browser to server (in your case to show the products because Lazy loading option is enabled in the Products WPBakery element http://prntscr.com/t8avid ) Response time depends on the server you use and its settings, on the DB structure. We use an optimized server with good params that’s why it has a very good response time. If you want to speed up your requests contact your hosting provider and ask about advice to reduce the server response time for your site.

    Besides, we would recommend you optimize images using Tinypng online service. It will allow you to reduce the images size up to 70%, for example https://gyazo.com/ec70f8cf8fa91df865854ee43def678a
    and it speeds up the page loading of course.

    Regards

    Avatar: chihao.weng
    howard
    Participant
    June 29, 2020 at 11:46

    Thanks!
    I think the performance issue might not caused by your theme.
    I noticed one thing. I monitor apache access.log and I found when I enter my website, the access.log print log immediately but when I scroll down to where admin-ajax.php calls , it take
    almost 1 second for my apache access.log start printing
    “POST /wp-admin/admin-ajax.php HTTP/1.1” 200 3881 “https://sib-skincare.com/” “Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:77.0) Gecko/20100101 Firefox/77.0”

    When might be the problems cause apache receive the Ajax request one second after client make the Ajax request ??

    Avatar: Olga Barlow
    Olga Barlow
    Participant
    June 29, 2020 at 16:25

    Hello,

    It would better to ask your hosting provider and server admin. We don’t have such information.

    Regards

  • Viewing 4 results - 1 through 4 (of 4 total)

The issue related to '‘admin-ajax.php performance issue’' has been successfully resolved, and the topic is now closed for further responses

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