Skip to content Skip to sidebar

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

Problem:
The client is experiencing issues updating translations due to an error with Object Cache Pro.
Solution:
We recommend using the native WordPress function wp_cache_add_non_persistent_groups to exclude groups from object caching.

If this solution does not resolve your issue or seems irrelevant due to being outdated or not applicable to your case, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If further assistance is needed, please open a new support ticket at WPML support forum.

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

Last updated by Andreas W. 1 week, 5 days ago.

Assisted by: Andreas W..

Author Posts
March 26, 2026 at 5:06 pm #17930257

lyndsayP-2

Over the past month, our client has ran into some toruble updating translations. I was able to narrow it down to an error with object cache pro. I did some research and discoverd this ticket: https://wpml.org/errata/object-cache-pro-various-issues/

Apparently there is a plugin that can maybe fix the issues we have been having?

March 28, 2026 at 9:33 am #17933592

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Hello,

Add this code to a PHP file called wpml-non-persistant-cache.php and save it inside wp-content/mu-plugins folder.

<?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( [
		'convert_url',
		'element_translations',
		'get_pages_adjust_ids',
		'get_user_admin_language',
		'translation_priority_relationships',
		'translationmanagement--get_translation_job_id',
		'wpml_cache_terms_per_lang',
		'wpml_endpoints_support',
		'wpml_pre_option_page',
		'wpml_register_string_filter',
		'wpml_register_string_filter--facetwp',
		'wpml_slug_translation_records--post',
		'wpml_slug_translation_records--taxonomy',
		'wpml_st_cache',
		'wpml_term_translation',
		'wpml_tm_blog_translators--has_translators',
		'wpml_wp_cache__group_keys',
] );

More details:
https://developer.wordpress.org/reference/functions/wp_cache_add_non_persistent_groups/

Let me know if you need my assistance with the implementation.

Best regards
Andreas