Skip Navigation

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.

Tagged: 

This topic contains 9 replies, has 2 voices.

Last updated by Bobby 2 weeks, 5 days ago.

Assisted by: Bobby.

Author Posts
October 14, 2024 at 11:20 pm #16288059

stefanE-16

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?

October 15, 2024 at 8:26 pm #16292596

Bobby
Supporter

Languages: English (English )

Timezone: America/Los_Angeles (GMT-08:00)

Hi there,

What is the load difference with WPML activated vs deactivated?

Are you seeing any duplicate queries related to WPML?

-- Consider disabling "display as translated" (Fallback mode) from post types, taxonomies, custom fields, etc. in WPML > Settings if activated

-- Disable the setting to "Adjust IDs for multilingual functionality" at WPML > Languages > Make themes work multilingual.

-- Go to WPML->Support->Troubleshooting and run

"Cleanup and optimize string tables"
"Clear invalid strings"
"Remove ghost entries from WPML tables".

NOTE: Always have a recent and working backup before making any changes recommended by our team or a 3rd party

October 15, 2024 at 10:49 pm #16292808

stefanE-16

Hey Bobby

Thank you for replying!

What is the load difference with WPML activated vs deactivated?

***How do I figure out that part?***

Are you seeing any duplicate queries related to WPML?

---> Query Monitor shows:
SHOW TABLES LIKE 'dwew_icl_mo_files_domains'
WPML_Upgrade_Schema->does_table_exist()
2 calls

Potential Troublemakers:
WPML\ST\MO\Generate\Process\SingleSiteProcess->getDomainsAndLanguages()
1 call
WPML\ST\MO\Scan\UI\Factory->create()
1 call

-----

SELECT term_taxonomy_id
FROM dwew_term_taxonomy
WHERE term_id=0
AND taxonomy='nav_menu'

WPML_Nav_Menu->_set_custom_status_in_theme_location_switcher()
2 calls

Potential troublemakers:
WPML_Nav_Menu->_set_custom_status_in_theme_location_switcher()
2 calls

--------

-- 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.

October 16, 2024 at 8:12 pm #16297715

Bobby
Supporter

Languages: English (English )

Timezone: America/Los_Angeles (GMT-08:00)

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.

October 23, 2024 at 7:09 am #16320122

stefanE-16

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.

Thank you.

October 23, 2024 at 10:08 pm #16323712

Bobby
Supporter

Languages: English (English )

Timezone: America/Los_Angeles (GMT-08:00)

Thank you for updating me and glad to hear that it worked well!

Here's a summary of steps you can take to resolve performance issues, combining the previous steps with some additional recommendations:

  • Disable "display as translated" (Fallback mode) for post types, taxonomies, and custom fields in WPML > Settings.
  • Only keep necessary addons/plugins; delete unimportant ones.
  • Disable WPML Media Translation if not using different images per language.
  • Turn off "Adjust IDs for multilingual functionality" in WPML > Languages (this shouldn't be needed for recommended themes).
  • Disable "Track where strings appear on the site" in String Translation.
  • Reduce page size by compressing media (use EWWW or similar) and minimizing media quantity.
  • Consider using the Index WP MySQL For Speed plugin.
  • Try object caching with Redis or use W3 Total Cache plugin for performance improvement.
  • Increase hosting/server resources for larger websites.
  • Use page caching plugins like Super Cache, W3 Total Cache, or WP-Rocket.
  • Avoid using SSL-helping plugins.

and this documentation:
https://wpml.org/tutorials/2022/03/boosting-the-performance-of-your-multilingual-wordpress-site/

October 24, 2024 at 1:11 pm #16326458

stefanE-16

Great.

I am though not seeing this:
Disable "display as translated" (Fallback mode) for post types, taxonomies, and custom fields in WPML > Settings.

Here is a mini tutorial I wrote which I would like to add on to later on.
hidden link

October 24, 2024 at 8:05 pm #16328364

Bobby
Supporter

Languages: English (English )

Timezone: America/Los_Angeles (GMT-08:00)

That step is referring to the option shown in the following screenshot.

Also here is documentation about this feature.
https://wpml.org/documentation/translating-your-contents/displaying-untranslated-content-on-pages-in-secondary-languages/#:~:text=Go%20to%20the%20WPML%20%E2%86%92,all%20post%20types%20you%20need.

This is a great tutorial by the way!

Screen Shot 2024-10-24 at 1.04.38 PM.png
October 24, 2024 at 9:23 pm #16328509

stefanE-16

Thanks Bobby!
I updated the tutorial.

Are there any other links that I should add to the mini tutorial?

Thanks again.

October 25, 2024 at 5:41 pm #16331897

Bobby
Supporter

Languages: English (English )

Timezone: America/Los_Angeles (GMT-08:00)

You are welcome!

The one I shared is the most recent and relevant one.

https://wpml.org/tutorials/2022/03/boosting-the-performance-of-your-multilingual-wordpress-site/