Skip Navigation

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.

Sun Mon Tue Wed Thu Fri Sat
9:00 – 15:00 9:00 – 15:00 9:00 – 15:00 9:00 – 15:00 9:00 – 15:00 - -
- - - - - - -

Supporter timezone: Asia/Yerevan (GMT+04:00)

Tagged: 

This topic contains 52 replies, has 5 voices.

Last updated by Nigel 9 months, 1 week ago.

Assisted by: Christopher Amirian.

Author Posts
June 9, 2023 at 9:00 am #13797989

peterJ-48

Hi Christopher,

Peter here. Our developers have analysed what queries that are send to our database. It turs out that from each page the statement show below, is executed multiple times with different element_id. When each statement is executed, it returns 400 rows with only 20 unique rows (and a lot of duplicates).

----

SELECT wpml_translations.translation_id, wpml_translations.element_id, wpml_translations.language_code, wpml_translations.source_language_code, wpml_translations.trid, wpml_translations.element_type
FROM www0_icl_translations wpml_translations
JOIN www0_term_taxonomy tax ON wpml_translations.element_id = tax.term_taxonomy_id AND wpml_translations.element_type = CONCAT('tax_', tax.taxonomy)
JOIN www0_icl_translations tridt ON tridt.element_type = wpml_translations.element_type AND tridt.trid = wpml_translations.trid
WHERE tridt.trid =
(SELECT trid FROM www0_icl_translations wpml_translations
JOIN www0_term_taxonomy tax ON wpml_translations.element_id = tax.term_taxonomy_id AND wpml_translations.element_type = CONCAT('tax_', tax.taxonomy)
WHERE element_id = 8646 LIMIT 1);

-----

This seams to be slowing down our site a lot.

One of our developers has discussed the issue with your colleague Eran Helzer on the chat (please see below images of the conversation). As you can see from the chat this is apparently a know performance issue that is scheduled to be fixed in your next release.

As this is having very negative consequences for our business, I would like to know the following:

1) When do you expect to be ready with a solution to the issue?

2) Your colleague is asking for a copy of our site for further investigation as the performance issue may occur in several forms. It is very important for us to have the issue solved and we would like to send you a duplicator package of our site. The size of our site, when using the duplicator plugin, is 4,5 - 5 GB. I believe your normal sandbox environment has a max of 800 MB. Is there another way we can transfer it to you?

I am looking forward to hearing from you.

WPML Chat ticket is Closed - Performance issue caused by WPML_Element_Translation-_maybe_populate_cache()_3.jpg
WPML Chat ticket is Closed - Performance issue caused by WPML_Element_Translation-_maybe_populate_cache()_2.jpg
WPML Chat ticket is Closed - Performance issue caused by WPML_Element_Translation-_maybe_populate_cache()_1.jpg
June 11, 2023 at 6:40 am #13804293

Christopher Amirian
Supporter

Languages: English (English )

Timezone: Asia/Yerevan (GMT+04:00)

Hi there,

Thank you for the report. I checked our issue tracker and indeed there is a report but there is no ETA for a fix yet.

I suggest that you use the Duplicator package and use the options to remove nig files that you think will not be effective on the whole process of troubleshooting, such as media files.

Alternatively, you can use a transfer online service such as wetransfer or google drive to upload the package and share the link with us.

Please make the next reply as private so you can meanwhile provide the login information for the package that you share.

Thank you.

June 12, 2023 at 11:31 am #13809265

peterJ-48

Hello Christopher,

I uploaded the wp-content folder and database to Google Drive. So you can copy my site.

Google drive link : hidden link

You can send a request for access, I will grant it.

June 12, 2023 at 12:56 pm
June 20, 2023 at 8:26 am #13856697

peterJ-48

Hello,

Is there any update about maybe_populate_cache() issue? actually, it is slowing down our entire website and because of the speed issue, we are losing our business.

During our troubleshooting, we found that maybe_populate_cache() affects each and every record from the database.

For example, we are trying to fetch the "about us" page link from the database, and directly or indirectly maybe_populate_cache() comes to the action and it loads all the elements related to "about us" and those records are around 400 for just one-page link and I have seen around 256 queries with same behavior with different elements.

Please guild if we can disable maybe_populate_cache() from our end until you guys resolve it. Because we are losing business and as you are not able to provide any ETA so the only option left for us.

June 21, 2023 at 8:04 am #13864905

Christopher Amirian
Supporter

Languages: English (English )

Timezone: Asia/Yerevan (GMT+04:00)

Hi there,

Thank you for the details. Our development team is aware of the issue and the priority of the issue is now on a high level.

We do understand that you are in a waiting mode here, at the moment nothing else I can share and it is not possible to turn off such a feature as it is an interconnected codebase.

I want to make sure to convey the message that we are fully working on this matter and if I have an update I am going to share for sure.

Thank you for your understanding and patience.

June 26, 2023 at 6:04 am #13892015

peterJ-48

Hi Christopher,

I understand that you have just released WPML 4.6.4 and WooCommerce Multilingual 5.2.0. Will the performance issue be solved in this release?

In case it is not solved in this release, could you then please give me a time estimate for when you expect to have a solution ready.

June 26, 2023 at 9:02 am #13893523

Christopher Amirian
Supporter

Languages: English (English )

Timezone: Asia/Yerevan (GMT+04:00)

Hi there,

In this release, we have the performance improvements mentioned below:

https://wpml.org/download/wpml-multilingual-cms/?section=changelog

- Improved translation sync process when a lot of translations are sent with Translate Everything Automatically mode.
- Improved the performance of WPML_Term_Translation and maybe_warm_term_id_cache.

It is not the one that you mentioned in your latest reply about "maybe_populate_cache".
That is still something that our development team work on.

I checked and there is no set release date for that yet.

I do suggest that you update WPML anyways as it will improve the performance in other areas mentioned in the changelog above.

Thanks.

June 27, 2023 at 9:53 am #13901065

peterJ-48

Hi Christopher,

Peter here. Thank you for your message.

Our developers will try and test the latest release at our staging server as you suggest.

It is absolutely crucial to our business that the issue reported in my message from June 9 is solved. The impact on our business is so negative, that we are forced to start working on an alternative solution to WPML if this is not solved within a foreseeable time. I must therefore ones again ask you to give me some kind of time estimated for when you expect to have a solution ready, so we can decide how to proceed from here.

June 28, 2023 at 5:42 am #13906783

Christopher Amirian
Supporter

Languages: English (English )

Timezone: Asia/Yerevan (GMT+04:00)

Hi Peter,

Thank you for your response.

I double-checked and there is still no set date for a release on the particular issue you have mentioned.

I do understand that you are under pressure and rest assured that we have this as a high priority.

For now, the only thing that the second-tier support could suggest was:

For this issue you can suggest user to have fewer products listed on a single page. i.e. related product, most popular product etc.
If they are using many widgets to display them each product has queries to translate the variations.

Also, using page and object caching there might help.

Thanks.

June 28, 2023 at 7:41 am #13907269

peterJ-48

Hi Christopher,

We are already using page and object caching. Object cache is however giving a number of other issues when sawing products and doing translations, but I am sure you are aware as I can see this has been reported from other customers already. https://wpml.org/forums/topic/translations-are-stuck-in-progress-when-using-redis-object-cache/

If you have this as high priority, I also assume that you are working with some kind of plan. I am not asking for a specific release date, but you must be able to give me some kind of time estimate (are we talking 1 week, 1 month or 6 month?), so we are able to plan and decide how to proceed from here.

Thanks

June 28, 2023 at 9:50 am #13908837

Christopher Amirian
Supporter

Languages: English (English )

Timezone: Asia/Yerevan (GMT+04:00)

Hi there,

That is all I can offer for now. Due to the technical debt of the "maybe_populate_cache" point we do not have ETA.

I will inform you if we have an update.

Thanks.

July 21, 2023 at 9:39 am #14077727

peterJ-48

Hi Christopher,

Can you please give me an update on this issue.
How fare are you and when do you expect to have a solution ready?

Thanks.

July 23, 2023 at 11:26 am #14084487

Christopher Amirian
Supporter

Languages: English (English )

Timezone: Asia/Yerevan (GMT+04:00)

Hi there,

Thank you for the follow-up. I checked and there is no new update to share.

Thanks.

August 22, 2023 at 3:18 pm #14272571

Alejandro
Supporter

Languages: English (English ) Spanish (Español ) Italian (Italiano )

Timezone: Europe/Rome (GMT+01:00)

Hello!

The performance fixes related to your problem are in track to be included in our next minor release (4.6.6). as Christopher told you there isn't a clear ETA yet because we need to make sure that the fixes successfully pass our internal tests. however it should be coming soon (possibly coming in the first or second week of september, but this date could change!).

The topic ‘[Closed] Performance issue’ is closed to new replies.