Is that issue still current?
Yes sure ?
Have a look at the site, you can change the language and the last post plugin stay in the same language
Olivier
Which multilang tool do the site use?
WPML
and it ws working fine before last week …
Olivier
The plugin was not optimized for working with any multilang plugin. So I can not reconstruct what happened to WPML. Maybe WPML changed something? Sorry, I can not help you.
Hi
We solved the problem
We use A Redis cache at the server side
A desactivate/re-activate of the Redis cache plugin and flush of this cache solve the problem …
Best regards
Olivier Bourgeois
Great to hear that! Thank you!
Hi
But after a couple of hours the problem is here again …
This is clearly a problem of this widget with PHP object cache
Olivier Bourgeois
Yes, the widget uses the WordPress built in cache. That is recommended in the WP documentation. I expect WPML tp wprk with the internal cache. But I assume that a cache is not the reason.
But it makes sense to check that. Would you please do me a favour an try the effect of the cache? Please comment out lines 247-252 (the if-else block) in the file ‘recent-posts-widget-with-thumbnails.php’ and load the page again. Will the language be changed?
Yes it seems to work like this
What will be the long term solution for me ?
Best regards
Olivier Bourgeois
I am thinking of a new option to switch off the cache. I will write again about that soon.
Ok
thanks and keep me in touch
Best regards
Olivier
I removed caching completely. With the new version 5.0 the bug should disappear. Can you confirm that, please?