Options db queries?
-
I installed Jetpack on a newself-hosted WordPress site, to use the comments module. After setting up the plugin and verifying the new comment form was working, I checked what db queries were being executed and found that every page load triggered a number of wp_options queries:
SELECT option_value FROM wp_options WHERE option_name = 'jetpack_edit_links_calypso_redirect' LIMIT 1 SELECT option_value FROM wp_options WHERE option_name = '_transient_timeout_jetpack_idc_allowed' LIMIT 1 SELECT option_value FROM wp_options WHERE option_name = '_transient_jetpack_idc_allowed' LIMIT 1 SELECT option_value FROM wp_options WHERE option_name = 'jetpack_sync_error_idc' LIMIT 1 SELECT option_value FROM wp_options WHERE option_name = 'jetpack_excluded_extensions' LIMIT 1 SELECT option_value FROM wp_options WHERE option_name = 'jetpack_sync_non_blocking' LIMIT 1 SELECT option_value FROM wp_options WHERE option_name = '_transient_timeout_jetpack_scan_state' LIMIT 1 SELECT option_value FROM wp_options WHERE option_name = '_transient_jetpack_scan_state' LIMIT 1 SELECT option_value FROM wp_options WHERE option_name = 'sharedaddy_disable_resources' LIMIT 1
This happened even when I disabled every Jetpack module via the debug screen. It doesn’t seem to matter if I’m logged in or logged out, the queries are run on every page load of the site frontend.
Is there a reason these options aren’t autoloaded? A number of them don’t appear to exist in the current options table, but are being requested on every page. I was thinking of manually updating the options table to autoload them, but thought I’d check first what was actually happening.
- The topic ‘Options db queries?’ is closed to new replies.