Background of the issue:
I am trying to improve page speed performance on zeetim.com. Our hosting support identified that the plugin sitepress-multilingual-cms sets a wp-wpml_current_language cookie on every page load, even for logged out users. They tested a filter provided by WPML called wpml_should_skip_saving_language_in_cookies, which, when returning true, allows caching to work correctly. They created an mu-plugin on our staging site to test this, and the cache starts working as expected when the cookie is not set. Link to a page where the issue can be seen: link oculto
Symptoms:
The wpml_current_language cookie forces cache to be bypassed, which slows down page delivery. I expected full page caching for logged out visitors without the cookie being set, but instead, caching is bypassed.
Questions:
Can using the wpml_should_skip_saving_language_in_cookies filter cause other issues on multilingual sites?
What is the correct and recommended way to prevent WPML from always setting this cookie for logged out users?
O tópico '[Fechado] WPML cookie wpml_current_language bypasses cache and affects page speed' está fechado para novas respostas.