Multisite: Do not prime site meta caches unless necessary.

Props spacedmonkey.
Fixes #46357. See #46167.

Built from https://develop.svn.wordpress.org/trunk@44926


git-svn-id: http://core.svn.wordpress.org/trunk@44757 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Felix Arntz
2019-03-18 15:56:51 +00:00
parent 0607371f84
commit 97d33e5231
7 changed files with 41 additions and 33 deletions

View File

@@ -235,7 +235,8 @@ function get_site_by_path( $domain, $path, $segments = null ) {
}
$args = array(
'number' => 1,
'number' => 1,
'update_site_meta_cache' => false,
);
if ( count( $domains ) > 1 ) {