Custom plugin calls to admin_ajax.php causing 504 and 429 errors
-
I created some plugin code that calls back with admin_ajax.php for logging of user interactions and if there are too many interactions, it gets kicked back with 504 or 429 error codes. The logging is based on how many videos are embedded on a given page, so if that number is too much, the number of ajax calls is too high – I understand that is what is causing the problem.
Ideally, we will continue to split the videos up so there are less on the page, but what are some other ideas to resolve this problem? I know there are many APIs that handle considerably larger number of calls…
Is the limitation something with WordPress API?
Is there a better way to make the AJAX call for logging (and waiting for response) on an individual website?
Is it worth creating some kind of JS message queue for the logging?Note that the logging is sent from the front end and then uses data on backend (current logged in user id, etc) for the logs.
Thanks in advance for the help
- The topic ‘Custom plugin calls to admin_ajax.php causing 504 and 429 errors’ is closed to new replies.