Very slow AJAX calls across WP after update
-
On a site that employs Event Tickets (v. 5.4.4), Event Tickets Plus (v. 5.5.3), The Events Calendar (v. 5.16.4), The Events Calendar PRO (v. 5.14.5), The Events Calendar: Filter Bar (v. 5.3.2), running WP 6.2 on PHP 7.4, we have a weird behavior after updating all the mentioned plugins to their latest versions.
The problem:
We noticed very big delay in many (maybe all) AJAX queries on the site after we applied the update and migrated the DB. We found the root of the delay – it is caused by event-tickets/common/src/Tribe/Feature_Detection.php: 113:
sleep( $wait_up_to / 5 );
We failed to find the logic behind this happening after the upgrade and not happening before that so my question is – what do we risk by trying to avoid this whole function, setting $supports_async_process to false through the ‘tribe_supports_async_process’ filter?
- The topic ‘Very slow AJAX calls across WP after update’ is closed to new replies.