• On every page load, a call is made to admin-ajax.php adding massive strain on our server. When I an increase in traffic on my site it crashes because of the extra load caused by the calls to admin-ajax.php

    My plugin is set to collect data using Javascript.

    What is the suggested between PHP, Javascript or REST API?

    Also, which option will have the least load on the server?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello @mash33

    Did you solve it? I’ve been having the same problem here.

    Tks

    Thread Starter mash33

    (@mash33)

    I don’t have a solution yet. However, after reading up a bit it seems changing the tracking method to REST API should reduce some of the load caused by the calls to admin-ajax.php. I haven’t tested this since it could have other implications. I hope the developers can respond and assist.

    Plugin Author dFactory

    (@dfactory)

    The fastest and the most lightweight option is the Fast Ajax.

    Or, if you don’t use heavy caching and don’t want to generate additional requests, switch to PHP.

    • This reply was modified 3 years, 9 months ago by dFactory.
    • This reply was modified 3 years, 9 months ago by dFactory.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Large number of calls to admin-ajax.php’ is closed to new replies.