This thread is resolved. Here is a description of the problem and solution.
Problem: The client reported a performance issue with their multilingual webshop when logged in as an admin. The webshop, which has over 50,000 products and 15,000 categories, was experiencing a significant number of SQL queries on every page load due to the function
maybe_populate_cache
in
class-wpml-element-translation.php
. This issue was not present when not logged in as admin. Solution: We recommended the client to modify the Sharespine WooCommerce Connector plugin. Specifically, to edit the
Additionally, we suggested that the Sharespine plugin developers join our Go-Global Program by filling out the form provided, to ensure better compatibility and support for multilingual sites.
Please note that the solution provided might be outdated or not applicable to your case. If the issue persists, we highly recommend checking the related known issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If you still need assistance, please do not hesitate to open a new support ticket with us.
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.
Languages: English (English )German (Deutsch )French (Français )
Timezone: Europe/Zagreb (GMT+02:00)
Hi,
We can try reproducing this case in our sandbox, so in a combination of these plugins and settings, but I don't think we will find this there this being a popular plugin and we would already have such reports.
The other option is to provide us with site dump and we can then debug the site.
Languages: English (English )German (Deutsch )French (Français )
Timezone: Europe/Zagreb (GMT+02:00)
Hi,
Ok I am downloading files as we speak. Before I escalate the case to our 2nd tier, can you send me at least one URL where I will see performance problem?
According to our previous correspondence, I assume I can open any product (original language) and try saving it, or do I need to find a particular one with a lots of categories?
FYI, I have figured out that has nothing to do with the amount of categories.
Many categories make saving a product a bit slower, but that is not the problem here.
I have tested this by deleting all product categories, the problem is the same anyway when Add Ons and Multi Currency both is active the problem occurs, and this is also shown in the debug.log file where [25-Mar-2022 11:31:35 UTC] METAKEY: _wcml_custom_prices_status is repeatedly logged.
Languages: English (English )German (Deutsch )French (Français )
Timezone: Europe/Zagreb (GMT+02:00)
Hi,
This is escalated to our 2nd tier team and may take some debugging time, I'll get back to you as soon as I have any news or questions for you.
As reproducing steps I mentioned this:
- activate Multi Currency
- try creating new product
- it will timeout and debug log will be filled with _wcml_custom_prices_status warnings
Languages: English (English )German (Deutsch )French (Français )
Timezone: Europe/Zagreb (GMT+02:00)
Hi,
You can let them know to join our https://wpml.org/documentation/support/go-global-program/, so ask them to fill this form in. It is up to them to decide whether they want to go this route and if they have resources for such tasks.