Multicurrency & multi-VAT page caching issues
-
Hi,
My website is using three currencies (USD, GBP and EUR) by using the Aelia currency switcher, which uses the Litespeed geolocation feature to display the correct currency to users (I know there may be inaccuracies due to VPNs etc) but that’s not a big issue.
On top of that for all countries within the EU plus UK and Norway I’m charging (different) VAT rates (UK in GBP, EU and Norway in EUR). And to make it even more interesting under certain circumstances, user based, EU prices in EUR are shown without VAT. All these VAT changes are being calculated by another GEOIP and delivery address aware plugin.
What I’m trying to work out is a cache vary strategy which allows me to build separate caches for each VAT/currency situation:
Cache 1: ROW (USD, no VAT)
Cache 2: UK (GBP, 20% VAT)
Cache 3: NO (EUR, 25% VAT)
Cache 4: CH & EU (EUR, no VAT)
Cache 5: EU country 1 (EUR, EU country 1 VAT)
Cache 6: EU Country 2 (EUR, EU country 2 VAT)
…
Cache 32: EU Country 28 (EUR, EU country 28 VAT)
What’s also an issue are third part website crawlers like Google who are getting confused about wrong currencies…
So far the only option to make this work seems to be using the Aelia cache helper plugin which does an Ajax based reload of the page with correct prices, which is very resource hungry and quite slow.
I’m also using Cloudflare CDN for static caching, but that shouldn’t have an impact here I guess.
Any idea how to fix this “mess” with the means of Litespeed server?
The page I need help with: [log in to see the link]
The topic ‘Multicurrency & multi-VAT page caching issues’ is closed to new replies.