Skip Navigation

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: America/Los_Angeles (GMT-08:00)

Tagged: 

This topic contains 3 replies, has 2 voices.

Last updated by Bobby 4 months ago.

Assisted by: Bobby.

Author Posts
July 18, 2024 at 12:56 pm #15972660

deepsonT

Background of the issue:
I am trying to fix Batcache on my site hidden link. Batcache is broken because the below cookie session is set on the site, which breaks caching and prevents it from speeding up the website. The cookies were set by the woocommerce-multilingual plugin. Here are the cookies: set-cookie: wcml_client_currency=AED; expires=Sat, 20 Jul 2024 10:42:23 GMT; Max-Age=172800; path=/; secure set-cookie: wcml_client_currency_language=en; expires=Sat, 20 Jul 2024 10:42:23 GMT; Max-Age=172800; path=/; secure. I need to change the plugin settings to set the cookie only if/when needed or disable the cookie with any filter or code.

Symptoms:
Batcache is broken on the site due to cookie sessions set by the woocommerce-multilingual plugin, which breaks caching.

Questions:
How can I change the plugin settings to set the cookie only if/when needed?
Is it possible to disable the cookie with any filter or code?

July 18, 2024 at 8:40 pm #15974755

Bobby
Supporter

Languages: English (English )

Timezone: America/Los_Angeles (GMT-08:00)

Hi there,

We are compatible with batcache, however, it has not been tested since 2014, so there could be some issue there.

The cookies that WPML uses are important for it to function properly:
https://wpml.org/documentation/support/browser-cookies-stored-wpml/

No hook currently provided in our hooks library would allow you to turn them off.

What is the issue you are experiencing with batcache and WPML, do you receive any errors?

July 19, 2024 at 5:16 am #15975841

deepsonT

Okay but one thing
set-cookie: wcml_client_currency
wcml_client_currency_language
This is coming from wcml plugin of wpml. So we have any option to disabled it or set the cookie only if/when needed?. Batcache is not working due to set this cookie. That is the issue.
We need to speedup our website with cache working

July 19, 2024 at 10:35 pm #15980061

Bobby
Supporter

Languages: English (English )

Timezone: America/Los_Angeles (GMT-08:00)

Same applies for WCML, unfortunately there is no hook to disable this cookie.

Can you please share with me if you get any errors, fatal errors or warnings, how do you know that batcache is not working due to the cookie.

Our team would like to attempt to reproduce this issue in order to debug it.

The topic ‘[Closed] Batcache is broken on the site because the below cookie session is set on the site, which breaks cac…’ is closed to new replies.