Redundant queries
-
Great theme. It saves me a ton of queries. But I think more can be squeezed out. If I analyze the queries I still see these ones
[4] => Array ( [0] => SELECT option_value FROM wp_options WHERE option_name = 'medium_crop' LIMIT 1 [1] => 0.0005500316619873 [2] => require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), do_action('wp_loaded'), WP_Hook->do_action, WP_Hook->apply_filters, {closure}, {closure}, WP_Theme_JSON_Resolver::get_merged_data, WP_Theme_JSON_Resolver::get_theme_data, get_default_block_editor_settings, wp_get_registered_image_subsizes, get_option [3] => 1674392741.0921 [4] => Array ( ) ) [5] => Array ( [0] => SELECT option_value FROM wp_options WHERE option_name = 'medium_large_crop' LIMIT 1 [1] => 0.00024199485778809 [2] => require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), do_action('wp_loaded'), WP_Hook->do_action, WP_Hook->apply_filters, {closure}, {closure}, WP_Theme_JSON_Resolver::get_merged_data, WP_Theme_JSON_Resolver::get_theme_data, get_default_block_editor_settings, wp_get_registered_image_subsizes, get_option [3] => 1674392741.0928 [4] => Array ( ) ) [6] => Array ( [0] => SELECT option_value FROM wp_options WHERE option_name = 'large_crop' LIMIT 1 [1] => 0.00028586387634277 [2] => require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), do_action('wp_loaded'), WP_Hook->do_action, WP_Hook->apply_filters, {closure}, {closure}, WP_Theme_JSON_Resolver::get_merged_data, WP_Theme_JSON_Resolver::get_theme_data, get_default_block_editor_settings, wp_get_registered_image_subsizes, get_option [3] => 1674392741.0932 [4] => Array ( ) )
Clearly they are somehow caused by code that has to do with thumbnails.
Is there a way you can prevent these queries?
- The topic ‘Redundant queries’ is closed to new replies.