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

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

Tagged: 

This topic contains 8 replies, has 0 voices.

Last updated by fredericP-26 2 days, 11 hours ago.

Assisted by: Lucas Vidal de Andrade.

Author Posts
December 2, 2025 at 4:15 pm

fredericP-26

I noticed that Litespeed cache is serving cached version of the pages that were crawled in the main currency (USD), but not in the secondary currency (CAD). We have set the wcml_client_currency cookie in the settings to capture both currencies. How can we make sure that the crawler is working for all currencies and the user is served the correct cached page? Thanks

December 3, 2025 at 8:38 am #17629593

Lucas Vidal de Andrade
WPML Supporter since 11/2023

Languages: English (English )

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

Hey there,

I've sent all the details from your ticket to our development team. I will get back to you likely later today, with their feedback. Thank you for your patience.

December 4, 2025 at 11:56 am #17633926

Lucas Vidal de Andrade
WPML Supporter since 11/2023

Languages: English (English )

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

Hello there,

I got feedback from the devs.

The currency is set via client location. This will backfire and cause issues as there is the visitor from his own server.

It turns out the issue is related to how the site sets the currency based on client location. In this case, using the wcml_client_currency cookie alone isn’t enough, because WCML applies internal checks tied to the visitor’s actual geolocation (when logged out), or shipping address (when logged in).

That means the crawler, running from the server’s location, can’t always trigger the correct currency-specific cache. To confirm this, you can temporarily allow all currencies to be accessible from any location and test whether the correct cached version is then served.

December 4, 2025 at 8:47 pm #17636166

fredericP-26

I have changed the settings for both currencies to be available in all countries (see attached). Then I purged the cache and started a new crawl.

On the frontend I'm still getting Miss for the CAD pages (it is working fine for USD).

Capture d’écran 2025-12-04 154557.png
December 4, 2025 at 8:56 pm #17636187

fredericP-26

BTW, I'm of course testing on incognito and even in different Chrome profiles. This is what I'm getting on all pages.

Capture d’écran 2025-12-04 152200.png
December 5, 2025 at 9:32 am #17637435

Lucas Vidal de Andrade
WPML Supporter since 11/2023

Languages: English (English )

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

Thank you for sharing. I've forwarded that and will keep you updated.

December 8, 2025 at 9:30 am #17643154

Lucas Vidal de Andrade
WPML Supporter since 11/2023

Languages: English (English )

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

Hey there,

Second tier devs ran a test with cUrl:

curl -X GET "<em><u>hidden link</u></em>" \
  -H "Cookie: wcml_client_country=CA; wcml_client_currency=CAD; wcml_client_currency_language=en" > output.html

And correctly received the page with the CAD currency.

It also works fine for the page hidden link (we can see the currency in the header). Check attached image.

Please answer these 2 questions:
1. What does he expect to see on the "Floater Frames in Cary"? (the "50$" is a content string or is a dynamic variable?)
2. Why don't we see the top bar menu with the currency switcher on his screenshot?

Thank you.

image8.png
image7.png
December 8, 2025 at 4:46 pm #17644921

fredericP-26

Hi,

Thanks for the reply.

The page I included as an example was just an example. There is nothing wrong with how this page is showing on the frontend. The currency switched wasn't showing because the screenshot was taken on mobile view.

The issue discussed in this ticket is only related to caching and the LS crawler.

As you can see on the attached image here, all the pages were successfully crawled. The cached pages are served correctly for the main currency (USD) on the frontend. But the secondary currency pages (CAD), are shown the uncached pages (except the ones that are manually loaded by an user). How to test:

- Use a VPN and browse from Canada.
- Go to this page: hidden link
- Load random links from this page and see if you are getting cache Hits or Miss.

Capture d’écran 2025-12-08 114501.png
Capture d’écran 2025-12-08 114129.png
December 10, 2025 at 6:21 pm #17653592

fredericP-26

Hi, do you have an update?