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/user.php

    r44606 r44928  
    681681    if ( ! empty( $site_ids ) ) {
    682682        $args = array(
    683             'number'   => '',
    684             'site__in' => $site_ids,
     683            'number'                 => '',
     684            'site__in'               => $site_ids,
     685            'update_site_meta_cache' => false,
    685686        );
    686687        if ( ! $all ) {
Note: See TracChangeset for help on using the changeset viewer.