WordPress.org

Make WordPress Core


Ignore:
Timestamp:
03/18/2019 04:20:53 PM (6 months ago)
Author:
flixos90
Message:

Multisite: Do not prime site meta caches unless necessary.

Merges [44926] to the 5.1 branch.

Props spacedmonkey.
Fixes #46357. See #46167.

Location:
branches/5.1
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/5.1

  • branches/5.1/src/wp-includes/ms-blogs.php

    r44472 r44928  
    9898    $site_ids = get_sites(
    9999        array(
    100             'number' => 1,
    101             'fields' => 'ids',
    102             'domain' => $domain,
    103             'path'   => $path,
     100            'number'                 => 1,
     101            'fields'                 => 'ids',
     102            'domain'                 => $domain,
     103            'path'                   => $path,
     104            'update_site_meta_cache' => false,
    104105        )
    105106    );
Note: See TracChangeset for help on using the changeset viewer.