Skip to content Skip to sidebar

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
- 7:00 – 12:00 7:00 – 12:00 7:00 – 12:00 7:00 – 12:00 7:00 – 12:00 -
- 13:00 – 15:00 13:00 – 15:00 13:00 – 15:00 13:00 – 15:00 13:00 – 15:00 -

Supporter timezone: Europe/Madrid (GMT+01:00)

This topic contains 67 replies, has 0 voices.

Last updated by Carlos Rojas 1 week, 3 days ago.

Assisted by: Carlos Rojas.

Author Posts
September 26, 2025 at 10:50 am #17435580

Carlos Rojas
WPML Supporter since 03/2017

Languages: English (English ) Spanish (Español )

Timezone: Europe/Madrid (GMT+01:00)

Great!

September 27, 2025 at 2:45 pm #17438087

rhettY

There is a setting in litespeed cache -> cache -> advance: AJAX Cache TTL.
In LS documentation, it says
"Specify an AJAX action in POST/GET and the number of seconds to cache that request, separated by a space. One action-TTL pair per line."

I can set the action to TTL 0, then it's not cached.

Please provide the ajax action name

September 28, 2025 at 2:01 am #17438403

rhettY

Hi Carlos,

Please check this thread: https://wordpress.org/support/topic/admin-ajax-php-cache-2/#post-18659351

September 29, 2025 at 8:52 am #17440014

Carlos Rojas
WPML Supporter since 03/2017

Languages: English (English ) Spanish (Español )

Timezone: Europe/Madrid (GMT+01:00)

Hi,
Thank you for your messages.

I have asked our 2nd-tier specialists to read the ticket you shared, and I'm waiting for their response.

September 29, 2025 at 10:48 am #17440570

Carlos Rojas
WPML Supporter since 03/2017

Languages: English (English ) Spanish (Español )

Timezone: Europe/Madrid (GMT+01:00)

This ticket has been moved to our compatibility team so our compatibility specialists can take a deeper look and isolate the cause of the issue with LS cache.

I will keep you updated on the evolution of this ticket.

September 30, 2025 at 11:36 am #17444119

Carlos Rojas
WPML Supporter since 03/2017

Languages: English (English ) Spanish (Español )

Timezone: Europe/Madrid (GMT+01:00)

Hi there,

Please follow these steps:
- Create a full site backup
- Add this code to the functions.php file located within the active theme folder:

// Use Cookie instead of WCSession
add_filter( 'wcml_user_store_strategy', function ( $strategy, $key ) {
    return 'cookie';
}, 10, 2 );

- Save the changes
- Go to LiteSpeed Cache -> Cache -> Advanced -> Vary Cookies -> add wcml_client_currency
- Save the changes
- Flush all the cache memory
- Double-check if the issue has disappeared

Can you tell me the results of the steps described above?

September 30, 2025 at 1:21 pm #17444921

rhettY

Hi,

I implemented it, and it seems the issue has been solved. Please check: antzracing.com

September 30, 2025 at 1:26 pm #17444936

Carlos Rojas
WPML Supporter since 03/2017

Languages: English (English ) Spanish (Español )

Timezone: Europe/Madrid (GMT+01:00)

Yes, it is working on antzracing.com 🙂

Is there anything else we can help you with?

September 30, 2025 at 1:28 pm #17444939

rhettY

Will this be included in next release OR a fix specific for my case?

September 30, 2025 at 1:30 pm #17444958

Carlos Rojas
WPML Supporter since 03/2017

Languages: English (English ) Spanish (Español )

Timezone: Europe/Madrid (GMT+01:00)

I'm checking with our compatibility specialists to determine the status of this issue.

September 30, 2025 at 1:34 pm #17444998

rhettY

Thanks.

If this is included in next release, I will delete the custom code in functions.php

September 30, 2025 at 1:48 pm #17445281

Carlos Rojas
WPML Supporter since 03/2017

Languages: English (English ) Spanish (Español )

Timezone: Europe/Madrid (GMT+01:00)

I'm still waiting for an answer from our compatibility specialists. I will let you know their opinion.

September 30, 2025 at 2:15 pm #17445379

rhettY

Hi,

I saw there is one more cookie: wcml_client_currency_language. Will this one affect the cache vary? I am setting up crawler. I've set up cookie simulations:
wp-wpml_current_language, value: en, de, _null
wcml_client_currency, value: USD, CAD, EUR, GBP, _null
Do I need to add "wcml_client_currency_language" in cache vary and crawler cookie simulation?

October 1, 2025 at 8:53 am #17447761

Carlos Rojas
WPML Supporter since 03/2017

Languages: English (English ) Spanish (Español )

Timezone: Europe/Madrid (GMT+01:00)

Hi,

1.- Our compatibility specialists suspect this issue is happening on your site and it is not a problem between WPML and LS Cache; however, they have raised this issue to take a deeper look in case there is a long-term solution that can be applied if another situation like this appears.

2.- Regarding the cookie wcml_client_currency_language, did you have any issues or problems with this cookie on your site? Is there any functionality affected related to the currency and this cookie?

October 3, 2025 at 3:11 am #17453265

rhettY

I've changed to use "CURCY - WooCommerce Multi Currency Premium" for multicurrency. It can solve the cache miss issue. According to litespeed, with your plugin, it's not possible to solve the cache hit issue for first page load. It's always miss cache.

You may check curcy's solution and use its solution.