[Resolved] Our site is very slow because of the WPML Media Plugin
This thread is resolved. Here is a description of the problem and solution.
Problem: The client's site is experiencing slow performance, taking nearly 13 seconds to render each page, potentially due to the WPML Media Plugin. Solution: We recommend creating a new staging site and performing the following steps: 1) Navigate to WPML >> Settings >> Media Translation. 2) Click on the Start button and wait for the process to complete. 3) Go to WPML >> Support page, and click on the Troubleshooting link. 4) On the Troubleshooting page, click on the following options in the Clean up section, waiting for confirmation after each:
Thank you for the updates. We will do detailed performance testing on the staging site - hidden link and get back to you as soon as possible. Please wait.
I had a few rounds of testing on the staging site. It shows the expected results after the following steps.
1) Visit WPML>>Settings>>Media Translation
2) Click on the *Start* button
3) Wait until the process complete
4) Go to WPML>>Support page, click on the Troubleshooting link (blue link in the middle of the page)
5) On the Troubleshooting page, please click on the following options of the *Clean up* section. Wait for confirmation of processing after each one.
- Clear the cache in WPML
- Remove ghost entries from the translation tables
- Fix element_type collation
- Set language information
- Fix WPML tables collation
- Assign translation status to duplicated content
- Fix terms count
- Fix post type assignment
- Cleanup and optimize string tables
Also, I have activated Query Monitor to check the slow queries. Most of the pages(frontend and backend) are loading in one second.
Please check the attached image for more details and let me know your feedback.
If there is any risk? Since our live site is so large with much content, it will be hard to tell right away if something gets messed up.. means after performing this activity can we face any risk?
Thank you for the feedback. You have more than 5000 media files on this site. It looks like a few of them are not synced properly to the secondary languages. Or maybe a compatibility issue with the Code Profiler Pro plugin.
I have switched between the themes during the tests. So my suggestion is please make a new staging site. Then try the following steps there and let us know your feedback.
1) Visit WPML>>Settings>>Media Translation
2) Click on the *Start* button
3) Wait until the process complete
4) Go to WPML>>Support page, click on the Troubleshooting link (blue link in the middle of the page)
5) On the Troubleshooting page, please click on the following options of the *Clean up* section. Wait for confirmation of processing after each one.
- Clear the cache in WPML
- Remove ghost entries from the translation tables
- Fix element_type collation
- Set language information
- Fix WPML tables collation
- Assign translation status to duplicated content
- Fix terms count
- Fix post type assignment
- Cleanup and optimize string tables
Hello,
Please close the ticket. We deactivated the wpml media plugin and the website running faster as compared to earlier.
We can't wait longer.
Thanks for your all support