Background of the issue:
I am experiencing problems with the search on my site; it is very slow and sometimes causes errors that cause the site to crash. I tried to install a plugin to analyze the queries made and identify the cause of the excessive slowness (approximately 30 seconds to load the page) and noticed that the main problem is WPML_Element_Translation->maybe_populate_cache, which performs 3,100 queries to the database.
Symptoms:
The search is very slow and sometimes causes errors that crash the site. The main problem seems to be WPML_Element_Translation->maybe_populate_cache, which performs 3,100 database queries.
Questions:
How can I solve the problem of slow searches?
What can I do to prevent the site from crashing due to this problem?
- Increase WP Memory Limit to 256M or higher , currently it's set to 128M which can cause memory issues.
- What are your results when WPML is temporarily deactivated? What is the loading time speed like vs when it's activated.
- Is the search coming from a third party plugin, the theme or custom code?
- Navigate to WPML->Settings-> are you using the feature "display as translated" (Fallback mode) for post types, taxonomies, custom fields, etc. ?
- Go to WPML->Support->Troubleshooting->and run:
"Cleanup and optimize string tables"
"Clear invalid strings"
"Remove ghost entries from WPML tables"
Let me know your results, please.
The topic ‘[Closed] Slow Searches and Site Crashes’ is closed to new replies.
Manage Cookie Consent
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.