[bug] WordPress Network with subdomains – causes hundreds of unnecessary queries
-
On a subdomain install of WordPress, the check here:
inc/WordPressHTTPS.php – line 141
if ( is_multisite() && is_subdomain_install() ) { $multisite_hosts = $wpdb->get_col($wpdb->prepare("SELECT domain FROM " . $wpdb->blogs, NULL)); $hosts = array_merge($hosts, $multisite_hosts); }
Causes 200+ queries which multiplies to somewhere north of 700 queries per page visit, with calls to:
SELECT domain FROM wp_blogs
Since the data from this looks to be cacheable, would it be possible to cache the results and do one query per page view?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘[bug] WordPress Network with subdomains – causes hundreds of unnecessary queries’ is closed to new replies.