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 5 replies, has 1 voice.

Last updated by Shekhar Bhandari 2 days 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