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 – 18:00 | 9:00 – 18:00 | 9:00 – 18:00 | 9:00 – 18:00 | 9:00 – 18:00 |
| - | - | - | - | - | - | - |
Supporter timezone: America/Lima (GMT-05:00)
Tagged: Performance
This topic contains 57 replies, has 3 voices.
Last updated by Andreas W. 1 year, 4 months ago.
Assisted by: Andreas W..
| Author | Posts |
|---|---|
| September 25, 2024 at 1:55 pm #16221003 | |
|
Andreas W. WPML Supporter since 12/2018 Languages: English (English ) Spanish (Español ) German (Deutsch ) Timezone: America/Lima (GMT-05:00) |
Hello, It would be great to see these logs and I will further take another closer look to the staging site today. Best regards |
| September 27, 2024 at 5:24 am #16228055 | |
|
Andreas W. WPML Supporter since 12/2018 Languages: English (English ) Spanish (Español ) German (Deutsch ) Timezone: America/Lima (GMT-05:00) |
My apologies for the delay in answering. I enabled Redis Cache on the Staging yesterday and I would need some more details about, if you can currently see similar issues on the staging site and if so, where can I see them? --- Regarding the slow query which we talked about earlier: IMPORTANT: Would you agree if we give this a test on the staging site? Example: Average Load time 1.0 seconds on first-page load including a slow query from WPML of 0.5 seconds. This persists when testing only with the Custom Theme, Advanced Ads, ACF PRO and Redis Object Cache, WP Rocket, WPML and String Translation. I can still confirm this slow query on the original and translated tag archives that sometimes occurs on the first-page load only or can occur persistently. --- Revising WPML > Taxonomy Translation > Tags shows that not all tags have been translated and the taxonomy base "tag" was not translated. I suggest completing those translations. I further have a question: If you create an original post in English, then it will make use of available categories and tags that were created in English. The translations of those posts will then use the translations of the categories and tags. Or are you trying to use different tags on translated posts and not sync them between the original posts and their translations? Please revise the list of tags at WPML > Taxonomy Translation > Tags. Revise between pages 19-50. You will find many tags that are registered in languages other than the site's default language. I would suggest cleaning those up and only using tags that are registered in the site's default language. The translated posts will use the translations of those tags automatically, once they are translated. --- After cleaning up, I also suggest going to WPML > Support > Troubleshooting and running all available options to clean up the database and optimize WPML's tables. |
| September 30, 2024 at 11:50 am #16235981 | |
|
coinQ |
Hello Andreas, Thank you for your detailed response and suggestions. We will share the requested logs with you shortly to assist in your further investigation. In the meantime, we will review and address the recommendations you provided, including the tag translation and cleanup in WPML, as well as testing a simplified query with the tag.php template on the staging site. We appreciate your continued support and will keep you updated on our progress. Best regards, |
| October 1, 2024 at 1:38 am #16238102 | |
|
Andreas W. WPML Supporter since 12/2018 Languages: English (English ) Spanish (Español ) German (Deutsch ) Timezone: America/Lima (GMT-05:00) |
Thank you, Vimal - I will be awaiting your feedback. If you reply within the next 14 days, this ticket will remain open. |
| October 1, 2024 at 9:54 am #16239288 | |
|
coinQ |
Hello Andreas, As promised, please find attached the latest Apache, Error, and Redis logs from the live site. These logs should provide more insight into the issues we've been facing with the Redis Object Cache when used alongside the WPML plugin, as well as when WPML is used on its own. Logs :- hidden link Please let us know if you need any additional information. Thank you for your support. Best regards, |
| October 1, 2024 at 2:26 pm #16241147 | |
|
Andreas W. WPML Supporter since 12/2018 Languages: English (English ) Spanish (Español ) German (Deutsch ) Timezone: America/Lima (GMT-05:00) |
Thank you very much! According to the Apache Error Log this looks like a media sync issue. Please try to run a test without the plugin WPML Media Translation. Then, run the dialog WPML > Settings > Media Translation > Start. After that test again with WPML Media Translation and let me know if the issue persists. |
| October 8, 2024 at 12:40 pm #16265428 | |
|
coinQ |
Dear Support Team, I hope this email finds you well. I would like to inform you that we are still working on the issues and appreciate your continued assistance. We are actively monitoring the situation and will update you with further details once we have more information or if we require additional support. Thank you for your understanding, and we look forward to resolving this soon. Best regards, |
| October 10, 2024 at 1:32 am #16272734 | |
|
Andreas W. WPML Supporter since 12/2018 Languages: English (English ) Spanish (Español ) German (Deutsch ) Timezone: America/Lima (GMT-05:00) |
Hi Vimal, I am running WPML > Settings > Media Translation > Start which will create the media entries for all the uploaded media. This is necessary to display the original media on all languages. There are more than 200k entries that needed to be created, which means this could take various hours. I will contact you tomorrow, once I will be able to continue testing. Best regards |
| October 11, 2024 at 2:10 am #16277348 | |
|
Andreas W. WPML Supporter since 12/2018 Languages: English (English ) Spanish (Español ) German (Deutsch ) Timezone: America/Lima (GMT-05:00) |
The media appears to be synced now. The website has around 30.000 images and 9 active languages. This makes 270.000 entries inside the media library (once for each language). Could you please run a test on the staging site and let me know if you can still experience the issues regarding slow media queries? Question: |
| October 22, 2024 at 1:17 pm #16317607 | |
|
coinQ |
Hello Andreas, Thank you for your continued testing and the update regarding the media synchronization. Since we operate a news/blog website, it's common for us to upload images for every article, both as featured images and inline images. However, with 270,000 media entries across 9 languages, we are concerned that this might be an unusually large amount. Could such a large number of images affect website performance, or cause any other issues? We would appreciate your feedback on this. Additionally, we upload only one image for each article, which is then duplicated across all languages. We don't require different images for each language version of the same article unless there’s a specific need. Is there a way to prevent automatic duplication of images across translations, and only upload different images when necessary? Ideally, we would like the same image used across all languages unless manually specified otherwise. Could you guide us on whether this can be managed through any settings or adjustments? Looking forward to your feedback. Best regards, |
| October 22, 2024 at 2:23 pm #16318026 | |
|
Andreas W. WPML Supporter since 12/2018 Languages: English (English ) Spanish (Español ) German (Deutsch ) Timezone: America/Lima (GMT-05:00) |
Generally, when using WPML you should not upload images on translations. WPML will display the original media on all translations and use the same file. To achive this WPML will created database entries to connect the original media with the translated contents. If you upload media in second languages, then the WPML Media Sync will cause unnecessary DB entries for all languages and you will find duplicated files on the server, as you have uploaded them once for each language. If you would like to use a different media in a second language, you can upload it at WPML > Media Translation. Guide: |
| October 25, 2024 at 2:14 pm #16331069 | |
|
coinQ |
Hello Andreas, Thank you for your response and clarification. As part of our regular process, we typically upload only one featured image along with inline images when creating an article. During translation, we generally only translate the content, and it is rare for us to change the featured or inline images in the translated articles. The same images are typically used across all translations unless there's a specific need to update them. With that in mind, could you confirm if this process would lead to any unnecessary duplication of images or database entries? We're particularly concerned about whether following this approach might still cause issues with duplicated images across languages. We would appreciate your insights on this. Looking forward to your thoughts. Best regards, |
| October 26, 2024 at 4:55 am #16332784 | |
|
Andreas W. WPML Supporter since 12/2018 Languages: English (English ) Spanish (Español ) German (Deutsch ) Timezone: America/Lima (GMT-05:00) |
Hello Vimal, Your approach is correct. Example: WPML by default will create one database entry for each media file in each language. This will create an entry inside the media library for each language. This means, while on the media library, when changing the admin language inside the top bar, you should see the same amount of images and you should be abl eto edit the meta information in each language. WPML will not duplicate the physical media files, it will only create database entries. This means, if you have 30.000 images (files) and 9 active languages you will have 270.000 entries inside the media library (once for each language). I further wanted to ask if you tested to adjust the archive templates by using a post query dedicated for the specific template? Best regards |
The topic ‘[Closed] Very slow queries’ is closed to new replies.