Wordpress LScache Plugin: Litespeed + Currency Converter Widget?
Last Updated on: Wed, 15 Apr 2026 00:00:02 Hi. I am using Currency Converter Widget from Woocommerce: https://woocommerce.com/products/currency-converter-widget/ which enables customers to change currency and it also use geolocation (the one built into Woocommerce) to set currency depending on country of the visitor. I have noticed that this doesnt work very well with Litespeed enabled. So my question is, how to I get the Currency Converter to work with Litespeed enabled? Hi, does that plugin use cookie or PHP session or something to store/save user currency info ? Best regards, Hi. It seems to use a cookie with the name: woocommerce_current_currency so I tried adding this to top of .htaccess: # BEGIN CUSTOM LSCACHE SETTINGS RewriteEngine on CacheLookup on RewriteRule . ? [E=Cache-Control:no-autoflush] RewriteRule . ? [E=Cache-Vary:woocommerce_current_currency] # END CUSTOM LSCACHE SETTINGS Dont know if that is correct or if some code is redundant as I actually have no knowledge about .htaccess at all. Just went with what I found in different forums etc. Just want to add, that when changing the currency in the Widget the prices for all products are updated i real-time without page refresh. The problem is that it reverts to either default currency (SEK) or the currency that the first visitor choose after I cleared the cache? I also noted, which I havent reflected over before, that prices arent correctly displayed with/without VAT depending on customers location/country. So I guess it all goes back to WooCommerces built-in geolocation not working correctly when using cache. Also, there seems to be some kind of bug between Litespeed & WooCommerce if I activate Geolocate with page caching support . It works fine for a little while, then all of a sudden, all visitors ends up in a endless browser refresh loop. This happens with all browsers I tested (Firefox, Chrome (both desktop & mobile), Opera & Safari for mobiles). The page keeps refreshing over and over again. If I disable Geolocate with page caching support in Woocommerce WITHOUT clearing cache, the issue stops directly and all of the browser that had been doing this stops refreshing without any interaction at all. And I dont know it this is a Litespeed issue or a WooCommerce issue. Hi, In that case, you will need to implement server GeoIP location are you using shared hosting or , your own server ? Best regards I have a shared hosting, but the hosting company usually is really helpful, so shouldnt be a problem to set up. I have activated geoip extensions in my PHP-settings in Direct Admin, is that what refer to? Please advice on how I proceed to get this working, really appreciate your help Hi, no ? not that please rely this doc to your provider and kindly ask them to set it up for you Best regards, Hi, Im 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, I am still waiting for the hosting company to get back when this is implemented on the server side. Marking this as unresolved until I have more information.
LiteCache Rush: Speed comes from using less, not from doing it faster
Reference