Home Forums Plugins CURCY – WooCommerce Multi Currency WP Rocket conflict

WP Rocket conflict

  • Author
    Posts
  • #60913

    Mark Genney
    Participant

    Hi. I noticed a problem with WP not working approximately 3 or 4 times out of 10. I raised a support ticket with WP Rocket and they went through our site and came back with a conflict with WooCommerce Multi Currency plugin due to a cookie issue

    I was glad they identified what this is. I checked your guide https://villatheme.com/knowledge-base/how-to-detect-currency-correctly-with-some-cache-plugins/

    I now have these settings in place however WP Rocket is still periodically failing. If I temporarily deactivate WooCommerce Multi Currency then WP Rocket works. Note this conflict is not specific to WooCommerce. It is affecting all pages on the site.

    WP Rocket support says

    After running some tests on the site we found out that this is the conflicting plugin:

    Multi Currency for WooCommerce

    When this plugin is enabled, WP Rocket is detecting that it should set a mandatory cookie:

    https://share.getcloudapp.com/yAuYX5pD

    But the mandatory cookie from this plugin is never set on the browser and this is preventing the cached files from being served to the visitor.

    Note that when a mandatory cookie is detected, the cached files will be served only after refreshing the page (or when visiting another page from the site) but first is strictly necessary that the cookie is set in place.

    As you can see, right after deactivating that plugin, WP Rocket is only detecting the Polylang mandatory cookie and since this one is properly set, when refreshing the page we’re getting the cached version of it:

    https://share.getcloudapp.com/X6uoky6p

You must be logged in to see replies to this topic. Click here to login or register