Home›Support›English Support›[Resolved] Redis Cache WPML bug with Woocommerce breadcrumbs on fresh Wordpress install
[Resolved] Redis Cache WPML bug with Woocommerce breadcrumbs on fresh Wordpress install
This thread is resolved. Here is a description of the problem and solution.
Problem: The client was experiencing an issue where category names were displayed in different languages on a WooCommerce site with Redis Cache enabled. This occurred when the product was translatable and set to 'use translation if available or fallback to default language', and the product did not have a translation.
Solution: We provided a workaround involving the insertion of custom PHP code into the theme's functions.php file. This code ensures that when Redis Cache is enabled, the correct language for product terms is used.
Glad to know that it works on your staging site. As for the on-going issue on your production site, we will have to check on it. Does it have a different setup? If possible, please share your Website WP admin access here using the private reply option and we'll check on it.
Please note that it is important to have a backup for security purposes and to prevent any potential data loss. You can use the UpdraftPlus plugin (https://wordpress.org/plugins/updraftplus/) to fulfill your backup requirements.
Your upcoming reply will be treated with confidentiality and will only be visible to you and me.
✙ To resolve the issue, I may need your consent to deactivate and reactivate plugins and the theme, as well as make configuration changes on the site if necessary. This emphasizes the significance of having a backup.
I have feedback and we have a workaround. Kindly insert the custom PHP code below into your themes functions.php file. Let me know if this works for you.
It finally works correctly, thank you! I hope to see the fix included in a future update aswell for other website owners.
Manage Cookie Consent
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.