Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
The client is experiencing issues with the dynamic cache not working on their Siteground hosted site. Siteground support identified the

PHPSESSID

cookie and

pragma: no-cache

header as potential causes of the problem.

Solution:
We have confirmed that WPML does not create PHP sessions. The code in question from WPML is designed to exclude the

PHPSESSID

cookie from a request, not to generate it. We recommend that the client collaborates with Siteground to determine where the cookie is actually being created, as it might be due to a third-party plugin. Additionally, we suggest deactivating all plugins except for WPML, possibly in a staging environment, to test if the issue persists. This could help narrow down the cause of the problem.

If this solution does not seem relevant or if the problem persists, please do not hesitate to open a new support ticket with us.

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

Last updated by Lucas Vidal de Andrade 1 year, 3 months ago.

Assisted by: Lucas Vidal de Andrade.

Author Posts
January 9, 2024 at 5:46 pm #15166070

ioannisP-12

The dynamic cache is not working on the client's site hosted on Siteground. Siteground support provided information identifying the PHPSESSID cookie and pragma: no-cache header as causing the issue.

January 10, 2024 at 11:04 am #15168186

Lucas Vidal de Andrade
WPML Supporter since 11/2023

Languages: English (English ) Spanish (Español ) German (Deutsch ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hello,

Our development team requested access to a staging version of your website. If you don't have any, please allow me to log in to your live site and make a copy using the Duplicator or All In One WP Migration plugins to analyze it locally.

You will find the needed fields for this below the comment area when you log in to leave your next reply. The information you will enter is private which means only you and I can see and have access to it.

Maybe I'll need to replicate your site locally. For this, I’ll need to temporarily install a plugin called “Duplicator” or "All in One WP Migration" on your site. This will allow me to create a copy of your site and your content. Once the problem is resolved I will delete the local site. Let me know if this is ok with you.

IMPORTANT

- Please make a backup of site files and database before providing us access.
- If you do not see the wp-admin/FTP fields this means your post & website login details will be made PUBLIC. DO NOT post your website details unless you see the required wp-admin/FTP fields. If you do not, please ask me to enable the private box. The private box looks like this:

hidden link

January 11, 2024 at 2:08 pm #15175016

Lucas Vidal de Andrade
WPML Supporter since 11/2023

Languages: English (English ) Spanish (Español ) German (Deutsch ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Thank you for sharing. I escalated your issue to our development team, so they can look for a permanent solution to your issue. That usually takes a few days, I'll keep you posted.

Meanwhile, I wish you have a great day 🙂

January 16, 2024 at 1:40 pm #15190112

ioannisP-12

hello
please enable the private box

Kind regards
Ioannis. P

January 16, 2024 at 2:44 pm #15190773

Lucas Vidal de Andrade
WPML Supporter since 11/2023

Languages: English (English ) Spanish (Español ) German (Deutsch ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

The private box is enabled.

January 16, 2024 at 4:42 pm #15191302

Lucas Vidal de Andrade
WPML Supporter since 11/2023

Languages: English (English ) Spanish (Español ) German (Deutsch ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hello,

I got feedback from our developers. WPML does not use PHP sessions. The function Siteground support pointed to is here wp-content\plugins\sitepress-multilingual-cms\classes\REST\Status.php

private function getCookiesWithoutSessionId() {
		return array_diff_key( $_COOKIE, [ 'PHPSESSID' => '' ] );
	}

Here WPML is only excluding the PHPSESSID cookie from a request, not creating it.

Can you get more details with Siteground to see exactly where the cookie is being created? We suspect this might be caused by another 3rd party plugin.

Also, if you could deactivate all plugins (maybe in a staging environment) except for WPML and test the Cookies again, we could narrow down the possible causes.

I'll wait for your feedback.

January 21, 2024 at 8:43 pm #15209087

ioannisP-12

Thank you for your response I have shared all info you have provided with team of experts because so far, I did not solve the problem. You may close this ticket for now and if I have something new I will communicate again. Please make sure that everything you may have regarding my site is deleted.

Kind regards
Ioannis P

January 22, 2024 at 11:03 am #15210700

Lucas Vidal de Andrade
WPML Supporter since 11/2023

Languages: English (English ) Spanish (Español ) German (Deutsch ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hello Ioannis,

All the data was shared privately, so it won't be available once the thread is closed. Thank you for getting in touch with us, and please don't hesitate to open a new ticket whenever necessary. 🙂

Best regards,
Lucas Vidal