This thread is resolved. Here is a description of the problem and solution.
Problem: The client is experiencing significant slowdowns on their website when using WPML with WooCommerce, as identified by the Query Monitor plugin.
Solution: We recommended several steps to improve WPML performance: 1. Temporarily deactivate WPML to compare load differences and identify duplicate queries. 2. Disable 'display as translated' (Fallback mode) for post types, taxonomies, and custom fields in WPML > Settings. 3. Turn off 'Adjust IDs for multilingual functionality' in WPML > Languages. 4. Run 'Cleanup and optimize string tables', 'Clear invalid strings', and 'Remove ghost entries from WPML tables' in WPML > Support > Troubleshooting. 5. Consider disabling unnecessary plugins and WPML Media Translation if not using different images per language. 6. Disable 'Track where strings appear on the site' in String Translation. 7. Optimize media and use caching plugins like Super Cache, W3 Total Cache, or WP-Rocket. 8. Increase hosting/server resources if necessary. For detailed guidance, refer to our documentation on boosting the performance of your multilingual WordPress site.
If these steps do not resolve your issue or if the solution seems outdated, please check related known issues at https://wpml.org/known-issues/, verify the version of the permanent fix, and confirm that you have installed the latest versions of themes and plugins. We highly recommend opening a new support ticket for further assistance 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.
Background of the issue:
I am trying to speed up WPML on my site hidden link. I installed Query Monitor and noticed that sitepress-multilingual-cms and wpml-string-translation are slowing down the site, and they are not interacting well with WooCommerce.
Symptoms:
The whole site is extremely slow.
Questions:
The site is extremly slow. How do I speed up WPML?
-- Consider disabling "display as translated" (Fallback mode) from post types, taxonomies, custom fields, etc. in WPML > Settings if activated
**The site uses native Enfold theme. Native pages. Native WooCommerce products.
I am not locating the above Fallback mode.*
-- Disable the setting to "Adjust IDs for multilingual functionality" at WPML > Languages > Make themes work multilingual. I am still seeing a left WP menu area that says: Enfold (NO).
**Ahhh yes. This was nice to turn off. There is no need to translate Enfold into Norwegian. It is better to keep it in the native English language.
-- Go to WPML->Support->Troubleshooting and run
"Cleanup and optimize string tables"
"Clear invalid strings"
"Remove ghost entries from WPML tables".
*Great! I cleaned up the above. It has over 200 invalid strings and likely other things.*
I am seeing sitepress-multilingual-cms on occasion show up on the top regarding Queries by Component. With 52 calls and time of 0.3188. This changes in relation to what is going on on the site.
The site feels a little faster. Do add additional settings that I can clear or anything else that I can do to help make WPML faster. It looks like WPML is also using a lot of the available memory as I was told by the web host that the bottle neck is the available ram. Making WPML use less ram would be helpful. Thanks.
Btw
Should the site have WPML SEO activated and WPML String Translation activated?
I am trying to deactivate most plugins that I can.
Thank you for updating me and glad to hear that you noticed some improvement.
WPML SEO is not too heavy and good to use if you are using Yoast.
WPML String Translation is required in order to run WooCommerce Multilingual and to translate strings.
Regarding Query Monitor it is best to only use the plugin when needed and not to have it on at all times, you will notice when it's turned off and WPML is activated that the performance will increase as well.
What is the load difference with WPML activated vs deactivated?
***How do I figure out that part?***
To do this simply go to plugins and deactivate WPML temporarily and review the performance difference. For example compare the number of duplicate queries and also the page load time.
Thank you Bobby. I followed the steps further above. It did create some havoc on the site where some pages became broken so that had to be fixed but the site feels faster.
Query Monitor is something I use on occasion to measure the performance.
One last request....
I have earlier made a tutorial on Full Site Editing with WPML hidden link
and would also like to create a tutorial for optimizing WPML as well.
If you could create a summary of options that would be good to optimize that I can use in the tutorial that would be great (add more detail to it please) I can then add the information you shared above as well as additional information.