• Hi, we have an urgent issue: currency switcher dropdown seems to be incompatible with cache plugins! I’ve tried several, but specifically we’re using W3 Total Cache. When You select different currency from default, then load some pages, then choose another currency and load some pages – if cache exists for those pages the currency setting will be forgotten and just loaded from cache, and all subsequent product list pages will have the same thing – whatever is cached will be loaded. Is there a way around it? We have to use cache, as without cache the homepages loading time is unacceptable 17 seconds, and with cache – only 2 seconds. Thanks.

    The page I need help with: [log in to see the link]

Viewing 9 replies - 1 through 9 (of 9 total)
  • Hi @romandesign,

    Could you please try setting “Default customer location” to “Geolocate (with page caching support)” in “WooCommerce > Settings > General” – this should solve the issues with caching plugins (“?v=…” will be added to all your pages URLs).

    Hope that helps.

    Thread Starter romandesign

    (@romandesign)

    This completely killed cache effect – pingdom result for homepage went up from 2 to 21 seconds.
    UPDATE: I enabled “Cache URIs with query string variables” after changing “enhanced disk” cache to “basic” in W3 Total Cache, but now there is an ugly string in the URL like http://proskatersplace.eu/?v=3e8d115eb4b3, and it might be different for every user or every country, so the homepage would load slowly for the first time from anywhere, which defeats the cache purpose. Any advice?

    Thanks for a fast reply!

    Thread Starter romandesign

    (@romandesign)

    I tested further – this did not help at all. The “v” string stays the same when USD/CAD selector is changed, so if you change currency and then load any pages that’s already cached – wrong previously cached currency selector state is loaded… So what do we do?

    Thread Starter romandesign

    (@romandesign)

    Also, it looks like this option adds redirect to all pages, potentially disabling caching and can cause SEO problems due to redirect. Please help!

    Hi @romandesign,

    Sorry, my mistake – for some reason I’ve replied providing the solution to our “Prices and Currencies by Country” module instead.

    Now regarding currency switcher – please try adding switcher as “Link list” instead (if you are using multicurrency switcher widget, then you can choose “Link list” in widget settings “Type” option). This way ?wcj-currency=EUR will be added to your URL. If this will solve the issue with caching – I could add option to use get instead of post for “Drop down” and “Radio list” widget type options also (i.e. those would also add ?wcj-currency=EUR to URL).

    Thread Starter romandesign

    (@romandesign)

    Thanks, I will test that. The GET option on the dropdown will certainly help. Can you send it to me when done, as we are on a temporary .eu domain until launch and I can’t update automatically because key doesn’t match the temporary domain.

    My 2c: Using Simple Cache and the Default customer location=Geolocate, and it seems to be switching currencies and caching just fine for me, including getting rid of that ugly ?v=XXX

    Hi @romandesign,

    Sure – will send you as soon as it’s ready. I’ve just checked and actually if you are using shortcode (i.e. not widget), you can already do that by adding form_method attribute:

    [wcj_currency_select_drop_down_list form_method="get"]

    or

    [wcj_currency_select_radio_list form_method="get"]

    Hi again @romandesign,

    I’ve just added “Form method” option to the widget. Please contact us with your order number via our website for the Plus dev version.

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Curency switcher incompatible with cache plugins’ is closed to new replies.