• Resolved uidb4056

    (@uidb4056)


    Hello,
    I’ve a site shop based on WooCommerce with multilingual WPML and with WooCommerce Multi-Currency activated. Also, the LiteSpeed Cache Version 3.6.2 is installed and activated from 6 months ago.

    Yesterday got updates for all WPML and WooCommerce Multi-Currency plugins and after I’ve got on the Dashboard a warning related to LiteSpeed Cache that say’s:

    WooCommerce Multilingual detected and active cache plugin on your site.
    Caching may cause currency display issues for your customers if you are using multi-currency feature.
    To avoid this, set your cache plugin to not cache pages for visitors that have a cookie set in their browser.

    I’ve looked at all settings of the LiteSpeed Cache but are unable to found how to apply this setting.

    Can you please help me to set it in order to avoid this issue?

    Many thanks in advance for your help,

    Robert

    • This topic was modified 4 years ago by uidb4056.
Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Support qtwrk

    (@qtwrk)

    Hi,

    Please provide the report number

    you can get it in toolbox -> report -> click “send to LiteSpeed”

    Best regards,

    Thread Starter uidb4056

    (@uidb4056)

    Hello,

    Here is the report number:

    Report number: UCKIQPMD
    Report date: 02/04/2021 07:23:57

    Best regards

    Plugin Support qtwrk

    (@qtwrk)

    hmmmm , just one quick question

    how does your plugin detect currency ?

    because I tried connect from Spain IP and USA IP , both shows me on EUR

    Thread Starter uidb4056

    (@uidb4056)

    Hello,

    It uses Geolocation and the currencies are USD$ for the USA, EUR for EU countries like Spain, France, Germany and CAD$ for Canada and rest of world like Argentina.

    I’ve tested using Proton VPN to connect from these countries. However sometimes I need to clear the cache to view the right currency.

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    If it uses GeoIP , please check this page

    you may need to ask your hosting provider to help you on this part

    Best regards,

    Thread Starter uidb4056

    (@uidb4056)

    Hello,

    Using Proton VPN I’ve been able to connect from the USA, Mexico, Argentina, UK, France, … without problems and showing the right currencies on each country, when I’ve said that sometimes I’ve needed to clear the cache I’m referring to browser cache.

    Anyway the question still is:
    Just in case I need to apply this recommendation how can I set it?
    ‘To avoid this, set your cache plugin to not cache pages for visitors that have a cookie set in their browser.’

    Best regards,

    Robert

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    that’s the least efficient solution

    you can go to Cache -> Exclude -> Do not cache cookie , add your cookie there to prevent page cache when that cookie is present.

    but you can try this way first

    add this at top of your .htaccess

    RewriteRule .* - [E=Cache-Vary:your_cookie_name]

    then purge all , this will make cache vary on cookie value.

    Best regards,

    Thread Starter uidb4056

    (@uidb4056)

    Hi,

    That sounds good but my knowledge about cookies and caching is very limited, and I don’t know how or where to found the cookie name to exclude from cache or place in .htaccess file.

    The site uses multicurrency for some countries based on geolocation and the customers doesn’t have a currency switcher available to change the currency.

    Can you help me to found this cookie name

    Many thanks in advance and best regards,

    Robert

    • This reply was modified 4 years ago by uidb4056.
    • This reply was modified 4 years ago by uidb4056.
    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    okay , hold on a second , I am getting little confused right now…

    1. so I tested your site , with 2 IPs one is from US/CA , one is from ES

    the ES one shows EUR , and other one shows CAD , which I except to be USD , but that’s okay with me , because geoiplocation could mismatch

    but , on both pages, I do see the cache hit already , and I’d say it is just working as it expects , isn’t it ?

    2. I did not find cookie though , not sure which one you used to store currency

    3. I think the most optimal solution is still to use GeoIP module from server-level , but it requires help from your provider : (

    Best regards,

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    I’m going to mark this topic “Resolved”, due to lack of activity.

    If you still need help, please feel free to re-open it.

    When re-open it, please also change the topic status to “not solved”

    Best regards,

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Woocommerce multi-currecy advise od LiteSpeed Cache’ is closed to new replies.