• Resolved Carl M.

    (@ccmanz)


    hey how do you uncache currencies by countries? I’m using woocommerce booster. How do I set this to exclude that function to be uncached? Please advise.

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Support qtwrk

    (@qtwrk)

    Hi,

    Does it use cookie or PHP session to define currency ?

    If it uses cookie , you can try rules like this: edit .htaccess file

    find

    <IfModule LiteSpeed>
    RewriteEngine on
    CacheLookup on
    RewriteRule .* - [E=Cache-Control:no-autoflush]

    replace it to

    <IfModule LiteSpeed>
    RewriteEngine on
    CacheLookup on
    RewriteRule .* - [E=Cache-Control:no-autoflush]
    RewriteRule .* - [E=Cache-Vary:cookie_name]

    replace cookie_name in last line to the cookie WooC booster uses.

    Best regards,

    Thread Starter Carl M.

    (@ccmanz)

    Hi! I would really appreciate if you could point out what cookie is used on that specific function. can you take a quick peak over the site?

    https://ozkilts.com

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    @ccmanz I just relied your post few minutes ago

    Best regards,

    Thread Starter Carl M.

    (@ccmanz)

    hey @qtwrk thanks for the tip! ??

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    Just to follow up ,

    Does it work on your site ?

    Best regards,

    It is not working on this site, i can see it uses woocommerce geo locate to define country, proposed fix was to set geolocate (page cache friendly) in woo commerce settings, however, this is not an elegant fix and causes massive issues: let me explain:

    When turning this setting on, it adds V session variable in url, we dont wish to have the v variables in our page URL’s because it is a huge problem.
    1) It looks terrible,
    2) it also causes issues with page sharing on social media (people have already started sharing the variable url instead of the normal domain url, which will have obvious ramifications with our international customer base)…
    3) it also causes possible MAJOR issues with SEO.

    So to confirm, this plugin uses the woocommerce store location (geolocate) setting. We request that this would work with litespeed natively, perhaps need to add hook/setting into litespeed cache to ensure this works properly, as currently it is caching the location which is not right!

    Hi all, we are working on a fix on Woocommerce multi-currency bug, will get you back and let you test on it in few weeks when the patch is ready.

    Thanks Stanley. Please post when the patch is ready and we will action it asap.

    This is already causing issue with our site and about half a dozen others we run so I hope you can resolve quickly.

    Thanks again!

    Thread Starter Carl M.

    (@ccmanz)

    Hi @qtwrk and @stanleylitespeed! Would you be so kind to remove the url that I’ve linked on my reply. That would be great!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘How to uncache currencies by countries?’ is closed to new replies.