• Resolved Holmey1

    (@holmey1)


    Hi,

    I’d appreciate some help with a problem I’m having regarding caching on a site that I’m working on, ([ redundant link removed ]), with me using the Homey theme and it being on a Litespeed server, with the problem I’m 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 doesn’t show in a widget area so I can’t set the ESI on the widget to private.

    I’ve 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 didn’t 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 2 years, 7 months ago by Jan Dembowski.

    The page I need help with: [log in to see the link]

Viewing 12 replies - 1 through 12 (of 12 total)
  • Thread Starter Holmey1

    (@holmey1)

    Having done some further research I’ve come up with https://blog.litespeedtech.com/2017/09/06/wpw-esi-and-litespeed-cache/ and I’ve been assured by my hosts that they don’t use Open LiteSpeed, so ESI could work.

    I’ve 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?

    I’m 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

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    how exactly does it not working for guest user ?

    on my quick test it seems working alright

    Thread Starter Holmey1

    (@holmey1)

    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 it’s finished it is still in Thai Baht, with me having tried it in both Google Chrome and Firefox and that’s all what happens, the currency doesn’t change even though it says that it’s changing currency.

    Thread Starter Holmey1

    (@holmey1)

    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 @qtwrk saying it’s working for him, but for me and a couple of other people I’ve asked to test it it’s not working, behaving as I’ve described above when not logged in.

    • This reply was modified 2 years, 7 months ago by Jan Dembowski.
    Plugin Support qtwrk

    (@qtwrk)

    try add

    
    RewriteRule .* - [E=Cache-Vary:homey_set_current_currency]
    

    at top of your .htaccess, then purge all

    Thread Starter Holmey1

    (@holmey1)

    No, that’s done nothing #qtwrk

    Plugin Support qtwrk

    (@qtwrk)

    please provide the report number

    you can get it in toolbox -> report -> click “send to LiteSpeed”

    Thread Starter Holmey1

    (@holmey1)

    Report number: FSMXHQNG

    Report date: 04/15/2022 18:18:36

    Thanks.

    Plugin Support qtwrk

    (@qtwrk)

    are you sure you added it ?

    did not see it in htaccess content.

    Thread Starter Holmey1

    (@holmey1)

    Apologies @qtwrk, 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 ??

    I’ve added it to the top of the HTACCESS file on the new hosting and it’s working fine now thanks.

    Holmey

    Thread Starter Holmey1

    (@holmey1)

    It’s working fine now thanks.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Litespeed breaking currency convertor’ is closed to new replies.