• Resolved d3d5x1

    (@deraxia)


    This plugin is the very best stats plugin for WordPress.

    I have one small issue I hope you can help with. When I test my website in GTmetrix, I see consistently the POST request to admin-ajax from Statify takes a very long time. It takes longer than anything else.

    The request looks like this:
    _ajax_nonce=caxxxxxxxx&action=statify_track&statify_referrer=&statify_target=%2F

    Is there any way to speed this up or no?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Stefan Kalscheuer

    (@stklcode)

    First of all please note, that the POST request is an asynchronous “fire and forget“ request and does not impact site rendering time or block the loading chain.

    AJAX requests are not cached design. The actual processing time strongly depends on factors like the number of plugins that do initialize (some ignore AJAX and opt out early, some do full initialization) and finally of course the server performance.

    Without detailed analysis and comparison on the actual platform, there is no general answer if improvements are possible or how.

    It takes longer than anything else.

    Longer than cached, static files, is normal and expected. On my sites I do see a difference of 3-8ms for static files (including cached page markup) and 150-200ms for AJAX POST. That is of course significantly more, but the absolute time is far from bad and I would not spend a minute of analysis in this case.
    I’ve seen times of 1s and more for a full, uncached WP cycle in the wild. That’s slow, but not quite unusual.

    Cheers,
    Stefan

    Plugin Support Torsten Landsiedel

    (@zodiac1978)

    Hi @deraxia

    maybe you can find the culprit with a debugging tool like:
    https://de.www.ads-software.com/plugins/debugpress/

    And if it still works (not updated since 4 years) you can disable plugins in the admin-ajax.php calls wit this plugin:
    https://github.com/webgilde/ajax-optimizer

    Hope this helps!

    All the best
    Torsten

    Thread Starter d3d5x1

    (@deraxia)

    It was consistently taking over 600ms. I tested from many locations over several days in GTmetrix and locally. I’ve tested against over admin-ajax requests and they don’t take anywhere near that long.

    That being said, I just updated from WordPress 5.7.2 to 5.8 and now it takes consistently under 150ms. Not sure why that helped, but case closed.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘POST admin-ajax’ is closed to new replies.