Support » Plugin: Breeze - WordPress Cache Plugin » AJAX performance issues when using Auto Purge Varnish

  • When Auto Purge Varnish is enabled, it causes certain AJAX calls to take ~3 extra seconds.

    The issue seems to be that, when the AJAX call inserts (and maybe updates?) a new post, it triggers Varnish to clear the cache of 14 different pages, such as the home page and blog page, etc.

    Since AJAX calls are generally meant to be speedy, this causes confusion for the end users when they click a button and nothing happens for 3-4 seconds.

    Disabling Auto Purge Varnish resolves the immediate issue, but that’s really more of a workaround than a fix.

    The two relevant functions involved are purge_cache and breeze_execute_purge. Maybe it would be possible to use wp_doing_ajax to disable those functions during AJAX calls, or change the Auto Purge Varnish option into a dropdown with several choices (Always, Non-AJAX calls only, Never).

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author adeelkhan

    (@adeelkhan)

    Hi
    Than you for reporting the issue with the performance of the AJAX call. We have started investigating the issue and a possible fix can appear in upcoming releases.

    I too have noticed this. With the auto purge option on, submissions through Gravity Forms are taking upwards of 8 seconds to complete. Turned off, submissions complete in less than a second. This seems to have started happening with the latest 1.0.12 update.

    Plugin Author adeelkhan

    (@adeelkhan)

    Hi

    There is a possibility that your issue might be caused by multiple urge requests. We recommend updating Breeze to the latest release. Do let us know if the problem persists after the update.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘AJAX performance issues when using Auto Purge Varnish’ is closed to new replies.