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: Bug
This topic contains 19 replies, has 0 voices.
Last updated by Lucas Vidal de Andrade 1 day, 13 hours ago.
Assisted by: Lucas Vidal de Andrade.
| Author | Posts |
|---|---|
| October 14, 2025 at 2:07 pm #17484385 | |
|
fredericP-26 |
Background of the issue: Symptoms: Questions: |
| October 15, 2025 at 8:27 am #17486053 | |
|
Lucas Vidal de Andrade WPML Supporter since 11/2023
Languages: English (English ) Timezone: Europe/Vienna (GMT+01:00) |
Hey there, I checked the following 1. On your home page, I see cache 'hits' consistently, when reloading the page; 2. When switching currencies on the website's top-bar, I get a 'miss' for 'x-litespeed-cache'and 'x-qc-cache' for the first and sometimes the second time the page is loaded; Does that describe the issue you are having? I need a consistent way to reproduce the issue, so I can escalate and describe it to developers. This seems to be one. P.S: an important detail, is that the website didn't load the CAD currency. In product pages, it always showed USD, despite switching to CAD. Are you aware of that? |
| October 22, 2025 at 2:49 pm #17508825 | |
| fredericP-26 |
Sorry for the late reply, somehow I didn't got the email notifications. You are right about the currency switcher not working. I selected the option for geolocalisation and the currency is auto-detected. If the user wants to change the currency, he needs to change it by changing the country in the billing address. Any way to bypass this? I'm testing using a VPN to change the currency. Usually when I load a page in incognito, then close the incognito window and open a new one, the page is a "hit". But when I change the currency in another session/window, I'm getting a "miss". From my understanding, the cache should be working with your multi-currency feature. Meaning that if an user is loading a page in CAD and then another user is loading the same page in USD, for following CAD and USD users will be served their respective cached pages, without having to load an uncached page. Is this the expected functionnality? Right now my guess is that each time a page is served in a different currency, the cache is reset. New threads created by Lucas Vidal de Andrade and linked to this one are listed below: https://wpml.org/forums/topic/split-currency-switcher-not-working/ |
| October 23, 2025 at 2:35 pm #17512928 | |
|
Lucas Vidal de Andrade WPML Supporter since 11/2023
Languages: English (English ) Timezone: Europe/Vienna (GMT+01:00) |
The fact that currencies are not changing, doesn't seem to be directly related to the caching question, even though they're involved to one another. In this case, so we don't mix the issues and can proceed productively, I've created a new ticket to address that. I'll ask for more information there: https://wpml.org/forums/topic/split-currency-switcher-not-working/ Let's check it first, since that's the cause for the cache's 'miss'. We can continue here thereafter. Thanks. |
| October 23, 2025 at 5:12 pm #17513675 | |
|
fredericP-26 |
Ok, I will answer you in the other ticket. |
| October 24, 2025 at 5:02 pm #17517669 | |
|
fredericP-26 |
The other ticket is resolved, so I guess we can continue here with the main issue. |
| October 27, 2025 at 8:14 am #17520364 | |
|
Lucas Vidal de Andrade WPML Supporter since 11/2023
Languages: English (English ) Timezone: Europe/Vienna (GMT+01:00) |
Hello, The only way I was able to get a 'miss', was when switching currencies on the website. The currency switcher is still there, even though it's not going to be used on the website (at least in the way settings were configured when I last checked it), as there are no scenarios that allow switching currencies. How are you going to proceed, regarding the currencies? If the switcher is no longer needed, how can I reproduce the issue? |
| October 27, 2025 at 6:02 pm #17523292 | |
|
fredericP-26 |
Hi, Please read my message from October 22, 2025 at 2:49 pm. I explained the steps how to reproduce the error (with a VPN). Even if the currency switcher is not functional (to switch currencies), we want to keep it there to show the user the current currency. |
| October 28, 2025 at 9:30 am #17525204 | |
|
Lucas Vidal de Andrade WPML Supporter since 11/2023
Languages: English (English ) Timezone: Europe/Vienna (GMT+01:00) |
Hello there, Thank you for clarifying. So the issue would happen if a user switched places geographically, or switched his VPN settings? Since the action of changing currencies manually is not on the website. I'm trying to understand when the problem would be relevant in a real use-case. I understand when the information is not properly cached, what I don't understand is what's the impact of it and which difficulty we are actually solving. I'll re-analyze the website and get a second opinion with my colleagues. I'll get back to you as soon as I hear from them. |
| October 28, 2025 at 4:01 pm #17526947 | |
|
fredericP-26 |
This is my understanding of how caching works: - An user is loading the page for the first time. The first load is longer, since the page is not cached yet. Am I correct? For example take these 6 different users, loading the same page, one after the other. This is the caching scenario I'm expecting: User #1 (Canada): Loading the CAD, UNCACHED. And this is what I think is happening right now: User #1 (Canada): Loading the CAD, UNCACHED. As you can see in my example above, caching doesn't make sense in this situation, because the cached version is generated each time an user has a different currency. |
| October 29, 2025 at 2:35 pm #17529943 | |
|
fredericP-26 |
Hi, I have installed Litespeed cache and imported my settings. I also set the same currencies in WPML. Please let me know what you find. Thanks |
| October 30, 2025 at 11:20 am #17532257 | |
|
Lucas Vidal de Andrade WPML Supporter since 11/2023
Languages: English (English ) Timezone: Europe/Vienna (GMT+01:00) |
Hey there, I'm not getting the same information on the response headers on the staging website, thus I cannot compare the behavior. Check the image attached. Can you please check? |
| October 30, 2025 at 6:34 pm #17534011 | |
|
fredericP-26 |
It's maybe because we are using CDN too (Quic.Cloud and Cloudflare). Can you test this directly on our staging site, by disabling all the plugins and using the theme of your choice? This will be more accurate. You have the staging logging info in the other ticket: |
| October 31, 2025 at 9:41 am #17535316 | |
|
Lucas Vidal de Andrade WPML Supporter since 11/2023
Languages: English (English ) Timezone: Europe/Vienna (GMT+01:00) |
Not really. What I need to do, is to recreate the issue on our own controlled environment, without external influences. This way, we can confirm what's the expected behavior of WPML in conjunction with Litespeed. Recreating the issue on staging is the opposite of that, as there are many external influences and we won't know 100% what is the cause. With that, I can escalate both your website and the Sandbox, so our devs have a control group to compare your website with. How can we achieve the same behavior in the Sandbox, to compare hits and misses? |
| October 31, 2025 at 5:03 pm #17536546 | |
|
fredericP-26 |
I'm sorry but I don't have the technical knowledge to answer your previous questions. I see that there are Litespeed tags in your header, but I don't see the hit/miss information. Are you running the test on a Litespeed server? Unfortunately I can't help you much here... |
