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.

Sun Mon Tue Wed Thu Fri Sat
- 8:00 – 13:00 9:00 – 13:00 9:00 – 13:00 8:00 – 12:00 8:00 – 12:00 -
- 14:00 – 17:00 14:00 – 18:00 14:00 – 18:00 13:00 – 17:00 13:00 – 17:00 -

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

Tagged: 

This topic contains 18 replies, has 3 voices.

Last updated by Bruno Kos 1 year, 3 months ago.

Assisted by: Bruno Kos.

Author Posts
August 28, 2023 at 1:06 pm #14301145

Bruno Kos
Supporter

Languages: English (English ) German (Deutsch ) French (Français )

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

We are having difficulty figuring this out because it does not happen in localhost environment, so we believe it is somehow related to Litespeed cache.

Can you check this answer and try implementing this solution in your website as well?

https://wpml.org/forums/topic/i-cannot-update-theme-settings-for-other-language/page/2/#post-14298791

This may give us some answers. But in your case, just copy-paste all the entries that are within wp_cache_add_non_persistent_groups group.

August 29, 2023 at 8:15 am #14305017

Bruno Kos
Supporter

Languages: English (English ) German (Deutsch ) French (Français )

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

On top of that answer, "wc_session_id" should also be added to the exclusions of the persistent cache.

August 29, 2023 at 9:46 am #14305793

John

Hello,
On the staging website that we have provided you we don't have a caching plugin active, so we don't think the caching it's the issue here.
All we have active on staging website it's Database Management tool - Adminer, Duplicator, WooCommerce, WooCommerce Multilingual & Multicurrency, WPML Media, WPML Multilingual CMS, WPML String Translation.
Waiting for your reply,
Thank you!

August 29, 2023 at 11:38 am #14306695

Bruno Kos
Supporter

Languages: English (English ) German (Deutsch ) French (Français )

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

Did you try the solution with mu plugin as I asked before?

So to create mu plugin with the followng content:

<?php
/**
 * Plugin Name: WPML Non-Persistent Cache
 * Description: A plugin to prevent persistent caching issues (temporary issue: compdev-220).
 * Author: OnTheGoSystems
 * Author URI: https://wpml.org/errata/problems-with-buddypress-multilingual-and-redis-object-cache/
 * Version: 1.0.0
 * Plugin Slug: compdev-220
 */

wp_cache_add_non_persistent_groups( [
		'wc_session_id',
		
] );

You can name a plugin as you wish, please check this:
hidden link

Does it work then?

The topic ‘[Closed] Session expired on checkout’ is closed to new replies.