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 1 reply, has 2 voices.

Last updated by Prosenjit Barman 1 year, 4 months ago.

Assisted by: Prosenjit Barman.

Author Posts
October 7, 2023 at 2:35 pm #14532843

paulW-38

Tell us what you are trying to do?
We moved our site to kinsta.com and therefore Caching from WP-Rocket is disabled and nginx kinsta caching is enabled.
We use ?lang= URL parameter in the URL to differentiate different languages.
The problem is, that only the default language is cached but not alle 3 other languages (EN, IT and FR which have a lang= ULR parameter
Di you have a solution on how to configure nginx so that caching of all languages works?

Is there any documentation that you are following?

Is there a similar example that we can see?

What is the link to your site? hidden link

October 9, 2023 at 9:17 am #14537455

Prosenjit Barman
Supporter

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hello There,
Thanks for contacting WPML Support.

I understand the issue you're having and will try my best to assist you in this matter.

Kindly note that certain caching plugins or service providers may not cache pages that contain URL arguments or parameters. As a result, if the URL format is set to "Language name as parameter" under WPML > Languages, pages in other languages might not be cached.

To solve the issue, please follow the workaround mentioned in the Errata below.

- https://wpml.org/errata/secondary-language-pages-not-cached-if-language-is-added-as-a-parameter/

Since you're using Kinsta cache, please enable the option to cache URL with query string from Kinsta Dashboard. You can also contact Kinsta support and request their assistance in enabling that option.

I hope it helps. If there is anything else you need help, feel free to let me know. I will be happy to assist.

Best Regards,
Prosenjit