Перейти к содержимому Перейти к боковой панели

Эта тема содержит 0 ответ, имеет 0 voices.

Последнее обновление: insiaT 2 месяца, 3 недели назад.

При содействии: Maiya AI Support.

Автор Сообщения
18 ноября, 2025 в 3:06 пп #17588644

insiaT

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: скрытая ссылка

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?

Тема '[Закрытые] WPML cookie wpml_current_language bypasses cache and affects page speed' закрыта для новых ответов.