600+ duplicate queries to wp_options
-
Hello
I am using the latest version, 4.9.4.
My blog is loading very slowly and using CPU above my limit on the web host. That was magnified by the fact that WPCache puts its files on the wp_options table. I have since then removed WPCache and deleted its entry on wp_options, but the issue with the duplicate queries persists, only now with less memory consumption.
I copied WP to my local machine and installed Query Monitor to profile it and found out that several queries are repeated multiple times just to load the homepage and that’s the same for the regular posts pages.
The worst offender is the query:
SELECT option_name, option_value FROM wp_options WHERE autoload = 'yes'
from wp-includes/options.php, function wp_load_alloptions().
It is repeated 663 times!!
And this is NOT a plugin issue. Those call mostly come from Wp-Core ( 464 calls ) or from the Parent Theme ( 163 calls ) as per Query Monitor.
There is also
SELECT user_id, meta_key, meta_value FROM wp_usermeta WHERE user_id IN (1) ORDER BY umeta_id ASC
from function update_meta_cache(), for a total of 30 repetitions. Again, mostly from core of parent theme.
I have deactivated all plugins. Also, I reverted to the original twentyfourteen theme, as I was using a child theme. That did not help.
Any ideas of what may be causing this.
I would say this is very much plain, core WP which is there now.
Thanks
BernardThe page I need help with: [log in to see the link]
- The topic ‘600+ duplicate queries to wp_options’ is closed to new replies.