• Resolved arzurchris

    (@arzurchris)


    Hello,

    I am facing cache issues with the currency switcher of Houzez

    I have tried different solutions that have seen on this forum but unfortunately none of them have been successful yet.

    When switching currency, a cookie houzez_set_current_currency is set but the currency doens’t change (unless I load a new page). For example I’m currently in EUR and switch to USD, the page is refreshed but the previous cache is hit and my currency still in EUR. Then I visit another page (not cached yet) and now the currency will be in EUR.

    It happens sometimes than the expected behaviour happens like currently for this one for example (at least from my browser)

    I have already added the cookie in vary:

    RewriteRule .? - [E="Cache-Vary:houzez_set_current_currency"]

    I also tried to add this filter:

    add_filter( 'litespeed_vary_cookies', function( $list ) { $list[] = 'houzez_set_current_currency'; return $list; } );

    I also tried to disabled the guest mode.

    I’m running out of ideas :/

    Kind regards,

    Chris

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support qtwrk

    (@qtwrk)

    please provide the report number

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

    Thread Starter arzurchris

    (@arzurchris)

    Hi,

    Report number:?GMVCPRDE

    Thank you

    Plugin Support qtwrk

    (@qtwrk)

    don’t put it in current way , you need to put the rule at top of your .htaccess

    and also , unfortunately , this method is not supported on QC CDN

    Thread Starter arzurchris

    (@arzurchris)

    Hello,

    Thank you for your message.

    I removed the entry in the field “Vary Cookies” in the Advanced tabs and put it myself at the top of the .htaccess

    # BEGIN LSCACHE
    ## LITESPEED WP CACHE PLUGIN - Do not edit the contents of this block! ##
    <IfModule LiteSpeed>
    RewriteEngine on
    CacheLookup on

    ### marker CACHE VARY start ###
    RewriteRule .? - [E="Cache-Vary:houzez_set_current_currency"]
    ### marker CACHE VARY end ###

    RewriteRule .* - [E=Cache-Control:no-autoflush]
    RewriteRule \.litespeed_conf\.dat - [F,L]

    ...

    Since this method is not supported on QC CDN, it’s still doesn’t work so I have 2 questions:

    1. Is that normal that the plugin place the Vary Cookies in the middle of the .htaccess instead of the top?
    2. Is there any workaround to make it work with QC CDN or do I have to disable it?

    Thank you for your help!

    Plugin Support qtwrk

    (@qtwrk)

    1. no , any manual/custom rule put within the LSCWP marker, will be removed when save settings , so better to place it outside of it , and in this case, above of it
    2. unfortunately no , you will need to disable QC CDN ??
Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.