• Resolved xpod

    (@xpod)


    Hi all,

    I’ve been trying to see where the issue happen but currently stuck.

    So I have my woocommerce to display product’s price based on visitor’s country. This is handled by Booster Plugin. The booster plugin detect user’s location based on their IP via Woocommerce detection method.
    My Woocommerce’s default currency is set to VND.
    I also have Cloudflare active and have set “Using client IP in header” under Litespeed web admin.
    So basically, if an user come from Vietnam, the currency will be VND (default); if an user come from Australia, the currency will be AUD and for the rest of the world, it will be USD.

    I have my .htaccess config as below:

    RewriteEngine on
    RewriteRule .* - [E=Cache-Control:vary=other]
    #set default vary to other
    RewriteCond %{HTTP:CF-IPCountry} "VN" [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} Googlebot [NC]
    RewriteRule .* - [E=Cache-Control:vary=vn]
    #if CF header for country shows VN , override it from other to vn
    RewriteCond %{HTTP:CF-IPCountry} "AU" [NC]
    RewriteRule .* - [E=Cache-Control:vary=au]
    #if header shows AU , override it from other to au
    RewriteCond %{HTTP:CF-IPCountry} "US|CA|SG|MY" [NC]
    RewriteRule .* - [E=Cache-Control:vary=int]
    #if header shows US CA SG MY , override it from other to int
    # BEGIN LSCACHE

    Currently, after a few days when I do a check using Geopeeker to check how the web would displayed from different location; other than Australia, some of the product’s price will be displayed in VND instead of USD when checking from locations like Brazil, US, Ireland.

    I am unable to locate the problem now. Please if you can, please show me what are the log I can look to. I have had no issues under nginx + WP Rocket in the past. This only arise after the switch to LS + LS Cache

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

    (@qtwrk)

    Hi,

    Could you please provide join our Slack community ?

    I would need more information about your setup

    if you join in , please let me know your username , I will reach you.

    Best regards,

    Thread Starter xpod

    (@xpod)

    Hi @qtwrk I have joined the Slack channel, my id is dng2403

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    I’ve sent you an “hi” , please respond me when it is convenient for you.

    Best regards,

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘LS Cache issue with multi currency using Booster Plugin’ is closed to new replies.