Litespeed breaking currency convertor




Wordpress LScache Plugin: Litespeed breaking currency convertor

Last Updated on: Wed, 15 Apr 2026 00:00:02
Hi, Id appreciate some help with a problem Im having regarding caching on a site that Im working on, ([ redundant link removed ]), with me using the Homey theme and it being on a Litespeed server, with the problem Im having being the currency selector, (on the top right of the site), not working for non logged in users. I contacted the theme support and basically they said tough, it works with only the required plugins, if you deactivate all the other plugins it will work as it should, with the process of eliminating leading me to find that it is the Litespeed cache plugin causing the problem, with my hosting support guy, (I was in the process of migrating it to higher spec hosting and he being really helpful), advising me that enabling ESI on your plugin, then the widget to Private ESI may help, with the problem being when the widget is enabled on the top bar of the theme it doesnt show in a widget area so I cant set the ESI on the widget to private. Ive tried setting the widget to not show in the top bar of the site, (a setting on the theme admin), then adding their widget to a sidebar and setting that widget to Private in the ESI settings, but that didnt work, in fact setting the site to display in a different currency to the base currency and it not allowing any changes from that to be made with it. Can anybody please advise me how I can get the theme currency changer in the top bar to work with the Litespeed Cache plugin enabled, can it be done with ESI and what do I need to do so it does? This topic was modified 7 months, 2 weeks ago by Jan Dembowski. The page I need help with: https://koh-lanta.org/ Having done some further research Ive come up with https://blog.litespeedtech.com/2017/09/06/wpw-esi-and-litespeed-cache/ and Ive been assured by my hosts that they dont use Open LiteSpeed, so ESI could work. Ive also found that I could perhaps exclude the JS for the currency switcher plugin, (which is a part of the theme), if that is the case, what do I put in the JS exclude section? Im not shure if it helps if you only exclude js file from beeing optimized, but try it. First chapter will answer your question: https://docs.litespeedtech.com/lscache/lscwp/pageopt/#js-excludes Hi, how exactly does it not working for guest user ? on my quick test it seems working alright At my end if you are not logged into the site and try to change it from the default Thai Baht to another currency it goes through the motions, (A changing currency, please wait pop up pops up), but when its finished it is still in Thai Baht, with me having tried it in both Google Chrome and Firefox and thats all what happens, the currency doesnt change even though it says that its changing currency. Can somebody else please have a look at [ redundant link removed ] and let me know how the currency selector is behaving and let me know below, with @CacheCrawler saying its working for him, but for me and a couple of other people Ive asked to test it its not working, behaving as Ive described above when not logged in. try add RewriteRule . - [E=Cache-Vary:homey_set_current_currency] at top of your .htaccess, then purge all No, thats done nothing #qtwrk please provide the report number you can get it in toolbox -> report -> click send to LiteSpeed Report number: FSMXHQNG Report date: 04/15/2022 18:18:36 Thanks. are you sure you added it ? did not see it in htaccess content. Apologies @CacheCrawler, my stupid I migrated the site to higher specification hosting last week and when I added the above to the HTACCESS file, I added it to the one on the old hosting account, not the new one Ive added it to the top of the HTACCESS file on the new hosting and its working fine now thanks. Holmey Its working fine now thanks.



LiteCache Rush: Speed comes from using less, not from doing it faster



Reference