Currency switcher cache issue with Houzez
-
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]
- You must be logged in to reply to this topic.