Skip Navigation

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

Problem:
The client is unable to trigger translations when updating a default language post. They expected a translation prompt but received no response.
Solution:
We recommended verifying that the code for the WPML Non-Persistent Cache plugin is correctly saved and placed. The correct code should be in a file named

wpml-non-persistent-cache.php

and added to the

mu-plugins

subfolder inside

wp-content

. This plugin helps prevent persistent caching issues that might be blocking the translation triggers.

If this solution does not resolve the issue or seems outdated, 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 problems persist, please open a new support ticket at WPML support forum for further assistance.

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

Last updated by Mihai Apetrei 2 months, 2 weeks ago.

Assisted by: Mihai Apetrei.

Author Posts
October 30, 2024 at 1:17 pm #16347308

matejK-16

Background of the issue:
I am trying to update a default language post on my website, hidden link, but no changes are triggered for the translations.

Symptoms:
I expected to see a translation prompt, but instead, I got nothing.

Questions:
Why are changes not triggering translations?
How can I get the translation prompt to appear?

October 30, 2024 at 1:18 pm #16347348

matejK-16

Can you please provide the plugin mentioned here? https://wpml.org/errata/object-cache-pro-various-issues/

We currently have this in our mu-plugins

<?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',
]);

October 30, 2024 at 7:57 pm #16349057

Mihai Apetrei
Supporter

Languages: English (English )

Timezone: Europe/Bucharest (GMT+02:00)

Hi there.

I will need to get in touch with our devs to get this and I will get back to you in this ticket as soon as I have updates.

Until then, I'm leaving the ticket assigned to myself.

Thank you very much for your understanding and cooperation.

Mihai Apetrei

October 31, 2024 at 7:54 pm #16353297

Mihai Apetrei
Supporter

Languages: English (English )

Timezone: Europe/Bucharest (GMT+02:00)

I'm back with a confirmation from our team.

We should have this exact code saved into a file named "wpml-non-persistent-cache.php", and added to the "mu-plugins" subfolder inside "wp-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( [
		'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',
] );

This looks similar to what you have.