Skip Navigation

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

Problem:
If you're experiencing very slow backend performance with WPML when updating products, taking up to 20 seconds, we have investigated this issue.

Solution:
First, check your database's

_options

table for any unusually large entries that could be affecting performance. You can use the following SQL query to identify large autoloaded options:

SELECT option_id, option_name, sum(char_length(`option_value`))/1024 as size FROM `wp2x_options` WHERE `autoload` = 'yes' GROUP BY option_id ORDER BY size DESC

Next, we recommend updating to the latest version of WooCommerce Multilingual, which includes a performance upgrade. You can download it from our site here: https://wpml.org/downloads/
For more information about the performance upgrade, please visit: https://wpml.org/compatibility/2023/11/woocommerce-multilingual-5-3-full-support-for-hpos-and-more/
After updating, go to WooCommerce -> Settings and enable HPOS. Then, test your site's performance again.

If you have tested and the issue persists, or if this solution doesn't seem relevant to your situation, please open a new support ticket with us for further assistance: Contact WPML Support

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

Last updated by Bobby 1 year, 1 month ago.

Assisted by: Bobby.

Author Posts
October 17, 2023 at 12:17 pm

mattiasL-9

Hello. I have developed a site for almost 1,5 years. The host provider is on of the best in sweden with top quality and speed servers. But now we have detected that wpml has been very very slow lately in back end. So when we updating a product, it is taking up to 20 seconds! We have been running speed tests and analysis, and sadly, wpml is the one plugins that slow things down in back end. There has not been an issue with WPML before, so is there anything you guys can do to fix this issue?

October 17, 2023 at 1:22 pm
October 19, 2023 at 12:39 am #14609331

Bobby
Supporter

Languages: English (English )

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

Hi There,

Please go to WPML->Support->Troubleshooting and run "Cleanup and Optimize String Tables"
- Does that help?

What is the current impact of WPML on the page loading time?
(When you deactivate/activate WPML)

For that, you can use the simple Chrome extension Page Load Time (hidden link) to measure loading time.

NOTE: During these tests please ensure that any cache plugin is deactivated. Also if possible it's best to perform these tests on a staging environment, if that is not possible we recommend ensuring that you have a working backup.

October 19, 2023 at 1:33 pm #14615671

mattiasL-9

Hello,

I tried to run "Cleanup and optimize string tables" but that did not help the load time to decrease when updating products.

And i added the chrome extension.
And i tried to update the same product with the same thing, and the results are:

WPML activated: Update a product between 9-12 seconds
WPML deactivated: Update a product 7 seconds

October 19, 2023 at 7:45 pm #14619017

Bobby
Supporter

Languages: English (English )

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

Thank you for testing this!

Typically up to 20% increase in load time is expected as WPML is a more complex plugin that requires more resources, I do see here we might have an increase of around 30% which we can investigate further, but I would like to first ensure if this is a global issue in your environment or just related to a specific product.

Is this load issue happening with just this one product or multiple products?

October 20, 2023 at 6:34 am #14620601

mattiasL-9

Ok good to know that wpml generally increase load time by 20%.

And yes, this is happening on all product updates, so its just not one products that is causing this crazy load time. It is every update you do on a product.

I can see that i cant add access to you/your team to our dev site in this message, but if you look into my previous support history, you will have an access link to the dev site where you can investigate this further. You have my permission to on the dev site: deactivate plugins, activate plugins, add new plugins, add code snippets and so on to investigate this load time issue on product updates.

October 20, 2023 at 6:57 pm #14626871

Bobby
Supporter

Languages: English (English )

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

Thank you for updating me, unfortunately, the older thread has access removed automatically but I will enable the private reply for your next reply.

October 21, 2023 at 5:22 am
October 24, 2023 at 6:14 am #14642347

Bobby
Supporter

Languages: English (English )

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

I escalated this thread to our 2nd tier support and they will take a look at this issue.

You will be notified as soon as new information is available.

Thank you,
Bobby

October 24, 2023 at 11:57 am #14647263

mattiasL-9

Ok thank you.

November 4, 2023 at 9:35 am #14730443

mattiasL-9

Hello.
Any updates on this on how it is going?

November 5, 2023 at 8:18 am #14732415

Bobby
Supporter

Languages: English (English )

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

Hi there,

At the moment our team is not able to easily reproduce the performance issue experienced on your site, we are still working on this and once I have more feedback I will update you here.

November 6, 2023 at 10:02 pm #14742351

Bobby
Supporter

Languages: English (English )

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

Hello again,

After reviewing this with our dev team the only thing that they can see that could be affecting performance is that a duplication process is starting (synchronization with duplicates) once you update a post in the default language and then the cache is cleared (wpml cache).

Probably this is what causes the slowness you are noticing,

Breaking the duplication link will allow for the update to be a bit faster.

Other than that we did not see anything else that could be responsible for the slow updating time from WPML's side.

November 7, 2023 at 6:34 am #14743077

mattiasL-9

Ok thanks.

I can see on the test site that you had access to, that there is an improvement in speed when updating products, so i guess that was one of the big things effecting the speed.

Since the big issue is on the live site (ferrita.com), i wonder if this is something we can fix ourselves? Or can i give your 2nd tier support access to the live site so they can fix the duplication process on the live (ferrita.com) as well?

November 9, 2023 at 6:07 am #14762231

Bobby
Supporter

Languages: English (English )

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

Hi there,

We can take a look at the live site as well, however, you should be able to break the duplication process.

Go to the product you are editing and edit in the default language

Use the language switcher at the top header and switch to the secondary language

Click on "translate independently" -- this will break the duplication link

Let me know your results, please.