Subash Chandra Poudel
|
Hi Arno,
We don't have an ETA yet our team are still working on it verifying the issue and trying to find a solution. The fact that cache might behave differently on different servers or situations is making the issue complex.
I have forwarded your update request to the team, I will send you an update here as soon as I have it from the team.
Regards,
Subash
|
arnoP-3
|
I'm adding a note here to refer back to this other issue that also seems Object Cache Pro related: https://wpml.org/forums/topic/translation-only-partially-makes-it-to-the-frontend/.
Is there any progress on your end? I think the more general issue is that WPML should prevent any backend actions/translation queries to be cached. That applies to all caches, not only to Object Cache Pro. If translations and translation statuses get cached somewhere, everything gets messy.
I would think that there should be a way to prevent caching, regardless of the type of cache. E.g. by making each query unique by adding a unique dummy WHERE clause or something like that. But I admit that I'm not technically experienced enough to understand all of this thoroughly.
|
Subash Chandra Poudel
|
Thank you for the updates and your thoughts.
The issue is still being troubleshot by our development team and I have forwarded your updates to the team.
Regards,
Subash
|
Subash Chandra Poudel
|
Hi there,
We have an update from the team. The team provided a workaround can you please try the following and see if it helps with the issue:
- Backup the site completely first to prevent any issues.
- Go to /wp-content/ folder on the site and create a folder named mu-plugins if there is not one already.
- Inside the mu-plugins folder create a PHP file with any name ( or wpml-non-persistent-cache.php ) and place the following code on it:
<?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',
] );
Looking forward to hear how it goes.
Regards,
Subash
|
arnoP-3
|
Hi Subash,
Thank you. The solution makes sense (I mean, having a list of exclusions for the cache). I installed the file, then purged and restarted Object Cache Pro.
Issue (1) is not solved though. We adjusted the translation of a custom post type in the Advanced Translation Editor. After clicking Complete, the WPML status icon was stuck in the "refreshing translation status" mode. Without the cache enabled, this only takes seconds. Perhaps we need to add more exclusions?
The other issues remain to be seen.
|
Subash Chandra Poudel
|
Thank you for the updates,
I have forwarded the details to our team and we will look further into it. In the mean time, I also recommend you do further tests like reclearing all caches and testing the cases again and see if it helps or not.
|
arnoP-3
|
Here's an update after processing about 15 more posts that were translated by external translators.
First a summary of the issues:
# Issue 1: In the list of posts, the WPML translation status icon keeps rotating for a long time (20 minutes).
# Issue 2: Changes in the default language (English) don't immediately make it to the ATE. Changing a sentence in an English post worked fine and was visible in the frontend, but the Advanced Translation Editor still showed the old text. After 24 hours that was still the case. When making a second change to the same post, both changes were immediately updated in the ATE.
# Issue 3: Changes in the WPML Advanced Translation Editor are not immediately visible in the German frontend.
# Issue 4: Add user to WordPress, add user as translator in WPML, try to assign user to translation basket: user not listed.
# Issue 5: German translations missing in the frontend and some texts rendered in English even when translated. Also lost translated strings. Probably only happens if translation via translation jobs. Rare issue, only on one page so far. See https://wpml.org/forums/topic/translation-only-partially-makes-it-to-the-frontend/.
With your cache exceptions in place, issue #1 and #2 still occurred. Issue #3 occurred as well, but seems to be related with #1: once the translation status is ok, the frontend is ok too. We didn't try #4. Issue #5 is rare, so I can't say.
Note that things can work well for hours even with Object Cache Pro enabled. But then all these issues keep coming up for hours, and the only "solution" is to disable Object Cache Pro. Not much has changed yet I'm afraid.
Kind regards,
Arno
|
Subash Chandra Poudel
|
Thank you for the updates Arno,
The issue is now being handled by our core team and I have forwarded your updates to the team.
|
arnoP-3
|
Hi Subash,
I was just thinking: we also tested some recommended lines in the wp-config.php file before. They are currently commented out. Is that ok? I am only supposed to test with what you recommended on August 28, right?
The situation is still the same: sometimes things work fine for hours, but at other times we can't work without turning the cache off.
Another example: I was translating menus this week, and suddenly all menus were listed twice! I disabled Object Cache Pro, and that solved it.
|
Subash Chandra Poudel
|
The fix Provided on August 28'th or in the reply linked next should be enough:
https://wpml.org/forums/topic/object-cache-pro-causing-wpml-issues/page/2/#post-14302565
Our team is still working on it to find a proper way to replicate all of the issues and also to find the fix. In the mean time, do you have any info if this issue started from some specific date or after some specific update to WPML? Or was it like this always on your site?
Regards,
Subash
|
arnoP-3
|
I checked with my colleague and from what she can remember, these issues started around mid-June.
We started working with multiple external translators by late May. She can't recall issues like this around that time, or prior to May, when we had only one external translator.
But for sure by mid-June this was happening. Looking at the WPML releases, that was around the time that 4.6.4. was released, and I usually install them on this site quickly because it's still in development.
Interestingly, on June 23, someone else reported the same issue but they never resolved it: https://wpml.org/forums/topic/how-to-exclude-wpml-from-the-object-cache-pro/
More issues here:
https://wpml.org/forums/topic/object-cache-pro-issue/:
https://wpml.org/forums/topic/object-cache-issues/: "Just got a never stopping spinner after translating which completed"
Of course, this could all be a coincidence. Perhaps it's related to Object Cache Pro updates, which are installed by Cloudways and usually not immediately after they're released.
This is all I have for you right now. I hope they'll find a solution soon.
|
Subash Chandra Poudel
|
Thank you for the details.
I have forwarded the details to our team.
Lets wait for the team's update after further troubleshooting.
|
arnoP-3
|
Hi Subash,
When do you expect an update about this issue?
|
Long Nguyen
Supporter
Languages:
English (English )
Timezone:
Asia/Ho_Chi_Minh (GMT+07:00)
|
Hi Arno,
Currently, we don't have any further information about this issue. Our development team is still working on it. We will update you here when we have any information.
Thanks for your patience.
|
adrienR-5
|
Hello, any definitive solution with Object Cache Pro issues with WPML?
I have issues with menus myself when OCP is enabled, I can't see the other menus (not from my main language), and the dropdown for my main language I see lot of duplicates items of all my menus.
|