Problem with compatibility between LS and WPML
-
Hi,
I’d like to ask you for help with your plugin and WPML. I am trying to make it work together for 2 weeks, but unfortunately I haven’t find a working solution.
I have two problems
- Now the main problem is, that LS doesn’t use 2 different caches according to currency, even if the vary cookie is set.
I’ve added snippet:
add_filter( ‘wcml_user_store_strategy’, function ( $strategy, $key ) {
return ‘cookie’;
}, 10, 2 );
and it worked for few hours and then stopped.I was able to make it work by adding another custom snippet, but it stopped to work after few hours too.
- Problem with crawler
When the first problem was solved, I’ve tried to set crawler to preload the cache. For the main currency it works correctly, but I have problems to set it for the second one.
The problem is, that LSCACHE_VARY_COOKIE identified by crawler are changed regardless to the settings (this info I have from Crawler log in your plugin).
I was able to make the crawler work (but only for few hours again). When it worked correctly, the LS identified these vary: wcml_client_currency,,wp-postpass_
But then it stopped to work and in log were these cookies as vary: wcml_client_currency,wcml_client_currency_language,wcml_client_country,,wp-postpass
and today there is no vary (it’s probably because of the problem #1)The strange thing is, that when it worked, I haven’t made any changes in the settings or on the site and it stopped to work – so I am not really sure what happens there.
Information which could be usefull about WPML
I use two currencies – CZK – the main currency, EUR – second currency added by WPML.
I use only one language – cs
I use geolocation to set currency etc.I’ve tried the current version of your plugin and also the oldest (version 4.6), but the problems persists. In the current version I have problem with dark mode, that’s why I’ve downgraded it.
The report number is RXFSKROK
I hope you’ll be able to help me, because I don’t understand why it stopped to work, when I did no changes there.
Thank you in advance and have a nice day!
Best regards
Jiří PázlerThe page I need help with: [log in to see the link]
The topic ‘Problem with compatibility between LS and WPML’ is closed to new replies.