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.

Tagged: 

This topic contains 2 replies, has 2 voices.

Last updated by Nigel 1 year, 4 months ago.

Assisted by: Nigel.

Author Posts
August 22, 2023 at 6:12 am #14267725

matejK-16

Hi,
There's a very slow response when switching languages on our website.
We're currently using a different domain per language and passing session via GET.
Having disabled this feature and not passing any sessions via either GET or POST, the response time is much quicker.
We're also passing a handful of cookies using wpml_cross_domain_language_data filter and set_xdomain_data_cookie action.
Can you advise please?

August 22, 2023 at 11:42 am #14270701

Nigel
Supporter

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

Hi there

I'm dealing with another ticket with a similar issue, so let me take this so that I can handle them together.

I visited and navigated your site, and don't see the problem, so I assume that you have currently disabled the feature to pass session data, correct?

From the link you shared for your site (hidden link) I take it that as well as using different domains for different languages, you have WordPress in a separate folder, yes?

(That is a similar scenario to the other ticket.)

I'm waiting on some feedback from my colleagues in the other ticket, when I'll have a better idea about how to proceed, and I'll contact you again.

August 22, 2023 at 12:58 pm #14271299

Nigel
Supporter

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

While this may seem unrelated, the issue could actually relate to the problem with String Translation described in this erratum: https://wpml.org/errata/wordpress-6-3-performance-issues-with-string-translation-in-specific-scenarios/

Could you please try the fix described there (try Option 1) and see if it makes a difference, and let me know.

Am I right in thinking that this problem started recently, or is the site new and you cannot say?

August 23, 2023 at 7:12 am #14274931

matejK-16

Hi,
thanks for your suggestions - I've implemented the fix you mentioned and it appears to be working slightly better. We'll continue monitoring and come back to you if we have any more issues. Thanks