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
- 10:00 – 17:00 10:00 – 17:00 10:00 – 17:00 10:00 – 17:00 10:00 – 17:00 -
- 18:00 – 19:00 18:00 – 19:00 18:00 – 19:00 18:00 – 19:00 18:00 – 19:00 -

Supporter timezone: Asia/Kathmandu (GMT+05:45)

Tagged: 

This topic contains 4 replies, has 1 voice.

Last updated by Shekhar Bhandari 3 days, 16 hours ago.

Assisted by: Shekhar Bhandari.

Author Posts
December 30, 2024 at 5:56 pm #16554280

pawelF-5

Background of the issue:
My website has been experiencing performance problems for some time. In the server statistics, I can see an overload in terms of memory used, but especially CPU processes. After a lot of searching, I noticed that a big problem is your plug-in. This is the number of database queries and loading time (by Query Monitor) before enabling the main WPML plugin (home page and post): hidden link. This is after enabling (home page and post): hidden link. I can give you access to a test server on which you can see it perfectly. Link to a page where the issue can be seen: hidden link

Symptoms:
The number of database queries increases significantly when WPML is enabled, leading to server load issues with memory and CPU.

Questions:
Is it normal that the number of database queries increases so much when WPML is enabled?
Please, can you help me?

December 30, 2024 at 11:19 pm #16554703

Bobby
Supporter

Languages: English (English )

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

Hi there,

The foundation of the server (PHP version, MYSQL, WP Memory Limit, etc) looks OK. I'd only suggest that you increase the WP MEMORY LIMIT to 500M.

Please review the following suggestions so we can start investigating this behavior.

#1

WPML Media -- deactivating it could help with performance unless you want to use different images across posts, pages, and post types in different languages.

https://wpml.org/documentation/getting-started-guide/media-translation/

#2

Go to WPML -> Settings -> Review the settings for post types, taxonomies, custom fields, etc. and verify that they are not set to "display as translated" (Fallback mode)

#3

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

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

#4

Consider using the plugin Index WP MySQL For Speed
https://wordpress.org/plugins/index-wp-mysql-for-speed/

Always have a working backup in place before attempting any suggestions on a live site and let us know your results, please.

December 31, 2024 at 12:20 am #16554753

pawelF-5

#1

I use different images in different posts. Just a few, not always. So as I understand it, I still need it?

#2

Everything is ok.

#3

All done, it unfortunately did not help the number of queries.

#4

I did a test with this plugin, I did all the steps and unfortunately it didn't help either. The number of queries did not decrease.

I would appreciate any further help 🙂

January 2, 2025 at 10:55 am #16558362

Shekhar Bhandari
Supporter

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hi there,

I'm here to assist you further with this issue.

Multilingual plugins require additional resources to function effectively as they manage connections between various elements to make them available for translation.

Could you try the solution provided in the link below and let me know if it helps?
https://wpml.org/forums/topic/really-slow-back-end-issue-wpml-9-languages-string-translation-plugin/#post-13119233

Thank you!

January 3, 2025 at 11:39 pm #16562676

pawelF-5

Hi,
I followed these steps, although define('ICL_DISABLE_CACHE', true) didn't need to remove it because I didn't have it in the wp-config.php file.

Nevertheless, it didn't change anything.

The number of queries is still huge.

Why do you make more than 1,000 queries on the site in the native language when you don't need to do anything, or more than 100 in the admin panel where nothing is translated and there is nothing to translate?

January 6, 2025 at 4:33 am #16565047

Shekhar Bhandari
Supporter

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hello there,

To debug this issue further, I would need to check your site settings once, for this I would need temporary access (wp-admin and ftp) to your site.

So could you please provide me with those details, you will find the needed fields for this below the comment area when you log in to leave your next reply.
hidden link

This info is private and available to you and WPML supporters only.
Read more about this: https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/

Note:
Backup your sites before providing the credentials or if possible provide credentials for the test site

Look forward to your reply.

Thanks

January 14, 2025 at 5:34 am #16591209

Shekhar Bhandari
Supporter

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

hello there,

Can I disable/enable themes/plugins to test the issue further on the site?

Further, Have you tried disabling all non-WPML plugins, switching to one of the default themes, and checking whether the issue still persists or not?

Please remember to create a backup of your site (both files and the database) before making any updates or changes. This is always a good practice.

Look forward to your reply.

Thanks

January 14, 2025 at 7:37 am #16591429

pawelF-5

Hi,

Yes, you can. This is a stag environment so you can turn plugins on and off.

I have been disabling plugins and the problem (more than 1000 queries to the database) appears when WPML plugins are enabled. I didn't test it with the template because nothing has changed in it, and there was no such problem before.

January 15, 2025 at 5:00 am #16595476

Shekhar Bhandari
Supporter

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hello,

I conducted the following tests, and here are the results:

- WPML plugins enabled with the default theme & WooCommerce: 117 queries
- WPML enabled with the Goodlife theme & WooCommerce: 979 queries
- Goodlife theme enabled with WooCommerce, WPML disabled: 534 queries

Based on these tests, it appears that the Goodlife theme significantly increases the number of queries. When WPML is also activated, the query count rises further. I tried searching for the theme’s official website but couldn't find it. Has the theme been discontinued?

Please note that these tests were conducted using the Query Monitor plugin, which itself impacts performance. Therefore, the actual query count might be slightly lower if the plugin is disabled.

Could you verify my findings on your end and let me know if you observe similar results?

Looking forward to your feedback.

Thanks!

January 15, 2025 at 7:24 am #16595700

pawelF-5

Yes, Goodlife theme is no longer supported.

However, before that ( while WPML has also been running with me for a long time) there were no such problems, so I assume it is a problem with WPML and not with the theme. The same goes for woo. That also worked long before WPML along with this theme and there were no problems. WPML fully supports Woocommerce.

Why such an increase in queries here even on a site where there is no need to translate any elements at all?

January 16, 2025 at 4:07 am #16599640

Shekhar Bhandari
Supporter

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hi there,

Yes, we fully support WooCommerce, and I don’t see any issues related to the GoodLife theme being disabled.

The WPML plugin works by controlling how translations are displayed on the front end. If a plugin makes multiple calls (e.g., 10 times), WPML needs to filter those calls to ensure the correct language information is displayed. As a result, the number of queries may increase, which is completely normal.

Thank you!

January 16, 2025 at 9:36 am #16600853

pawelF-5

Thank you for your support and explanation.

So... what advice do you have for me to reduce this number of queries?

January 16, 2025 at 12:58 pm #16602000

Shekhar Bhandari
Supporter

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hello,

I recommend switching to a theme that is actively maintained and supported.

If you wish to continue using the current theme, I suggest reaching out to its developers to optimize it for your needs.

Alternatively, you might consider contacting one of our certified partners for assistance. You can find a list here: http://wpml.org/documentation/support/wpml-contractors/

Before proceeding, please review the guidelines for consulting help here: http://wpml.org/documentation/support/wpml-contractors/guidelines-for-people-looking-for-consulting-help/.

This will ensure you receive the custom assistance necessary to move forward with your project.

Apologies that I couldn’t be of more help directly.

Thank you!