Background of the issue:
I am trying to address a slow website issue, particularly on the Dashboard side, where loading times can reach 15 seconds. Site Health indicates a large number of records in wp_option autoload. We've changed web hosting several times and even tried a local environment, but the website still times out with error 504. Using Query Monitor, I noticed a slow HTTP call linked to WPML: GET hidden link cURL error 28: Operation timed out after 5000 milliseconds with 1702220 out of -1 bytes received. The issue can be seen at hidden link.
Symptoms:
The website is experiencing very long loading times, especially on the Dashboard. There is a cURL error 28 indicating a timeout after 5000 milliseconds. The site also goes into timeout with error 504.
Questions:
How can I reduce the loading time on the Dashboard?
What can be done about the large wp_option autoload records?
How do I resolve the cURL error 28 linked to WPML?
What steps should I take to prevent the website from timing out with error 504?
Languages: English (English )German (Deutsch )French (Français )
Timezone: Europe/Zagreb (GMT+02:00)
It looks like the REST API might be disabled on your site. To check this, we ping the REST endpoint and store the result as a transient. If that transient isn’t being set, the system keeps trying to ping repeatedly. This could be a sign there's an issue with the wp_options table in your database that's preventing transients from being saved correctly.
Can you please try the following:
1. Manually set a transient named `_transient_wp-rest-enabled-ping` with the value `enabled`. You can do this by temporarily adding the following code to your theme’s `functions.php` file or via a plugin like Code Snippets:
I have used the plugin "Transients manager" but when I test the SQL return option_value "off", so I have added the code snippet in functions.php and the SQL returns:
5508142 _transient_wp-rest-enabled-ping enabled off
Anyway the dashboard is still really slow and in Query Monitor I see 2 slow query:
UPDATE `NXrOmV8_options`
SET `option_value` = '1744254572'
WHERE `option_name` = '_transient_timeout_wp-rest-enabled-ping'
update_option()
Plugin: litespeed-cache
UPDATE `NXrOmV8_options`
SET `option_value` = '1744254573', `autoload` = 'off'
WHERE `option_name` = '_site_transient_timeout_rollback_themes'
Languages: English (English )German (Deutsch )French (Français )
Timezone: Europe/Zagreb (GMT+02:00)
Yes, please try disabling it.
Also, could you check if the performance issue persists under the following conditions?
- Only WPML plugins are activated — this will help determine if there's a conflict with another plugin.
- The theme is switched to a default WordPress theme like Twenty Twenty — this will help identify any conflict with your current theme.
If the issue still occurs after these checks, I’ll proceed by installing the Duplicator plugin to create a package for further debugging. I’ll make sure to exclude all media files to keep the package size minimal.
I've disabled litespeed cache and nothing has changed.
Disabling other plugins doesn't change a thing.
Switch to default theme just speed up a little but website is still really slow.
Languages: English (English )German (Deutsch )French (Français )
Timezone: Europe/Zagreb (GMT+02:00)
This has been escalated to our 2nd tier team team and may take some debugging time, I'll get back to you as soon as I have any news or questions for you.