• Resolved waxaddict

    (@waxaddict)


    Hi, guys, I use Litespeed cache and all is great, except when I try to use a currency converter. I’ve tried so many but all have issues.

    If I do finally get one using geolocate that doesn’t stick on a random currency for everyone (i.e caching the currency changes), Google Merchant Center and Pinterest bots that get feeds from my site fail because the price isn’t properly being fed, likely due to geolocate price conversions and checking when someone visits the site.

    I imagine my only option is not using Geolcate, but having a manual switch where users can change the currency if they want – however, I need it not to be cached – has anyone found a plugin or method where this is possible?

    Just a switch or button where users can choose currency, but not have it cached with Litespeed, so it doesn’t stick or change for everyone.

    Thanks!

Viewing 2 replies - 31 through 32 (of 32 total)
  • Correction

    RewriteCond %{HTTP_COOKIE} ^wmc_current_currency$ = USD [NC]
    RewriteRule .* - [E=Cache-Control:vary=%{ENV:LSCACHE_VARY_VALUE}+usd]
    
    RewriteCond %{HTTP_COOKIE} ^wmc_current_currency$ = GBP [NC]
    RewriteRule .* - [E=Cache-Control:vary=%{ENV:LSCACHE_VARY_VALUE}+gbp]
    
    RewriteCond %{HTTP_COOKIE} ^wmc_current_currency$ = THB [NC]
    RewriteRule .* - [E=Cache-Control:vary=%{ENV:LSCACHE_VARY_VALUE}+thb]
    
    RewriteCond %{HTTP_COOKIE} ^wmc_current_currency$ = EUR [NC]
    RewriteRule .* - [E=Cache-Control:vary=%{ENV:LSCACHE_VARY_VALUE}+eur]
    
    RewriteCond %{HTTP_COOKIE} ^wmc_current_currency$ = AUD [NC]
    RewriteRule .* - [E=Cache-Control:vary=%{ENV:LSCACHE_VARY_VALUE}+aud]
    
    RewriteCond %{HTTP_COOKIE} ^wmc_current_currency$ = CAD [NC]
    RewriteRule .* - [E=Cache-Control:vary=%{ENV:LSCACHE_VARY_VALUE}+cad]
    
    RewriteCond %{HTTP_COOKIE} ^wmc_current_currency$ = MXN [NC]
    RewriteRule .* - [E=Cache-Control:vary=%{ENV:LSCACHE_VARY_VALUE}+mxn]
    
    RewriteCond %{HTTP_COOKIE} ^wmc_current_currency$ = NZD [NC]
    RewriteRule .* - [E=Cache-Control:vary=%{ENV:LSCACHE_VARY_VALUE}+nzd]
    Thread Starter waxaddict

    (@waxaddict)

    Thanks, still haven’t added it but not disappeared – currently lost access to my admin dashboard/top bar somehow.. trying to figure out wth happened. The joys of WordPress..

Viewing 2 replies - 31 through 32 (of 32 total)
  • The topic ‘Currency converter working with Litespeed Cache, Google Feed etc’ is closed to new replies.