Skip to content

Commit

Permalink
Pass the meta cache prime argument.
Browse files Browse the repository at this point in the history
  • Loading branch information
JJJ committed Apr 7, 2017
1 parent 040a9e2 commit e8166ed
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,8 @@ public function __construct( $query = '' ) {
'date_query' => null, // See WP_Date_Query
'meta_query' => null, // See WP_Meta_Query
'no_found_rows' => true,
'update_site_alias_cache' => true,
'update_site_alias_cache' => true,
'update_site_alias_meta_cache' => true,
);

if ( ! empty( $query ) ) {
Expand Down Expand Up @@ -311,7 +312,7 @@ public function get_site_aliases() {

// Prime site network caches.
if ( $this->query_vars['update_site_alias_cache'] ) {
_prime_site_alias_caches( $alias_ids );
_prime_site_alias_caches( $alias_ids, $this->query_vars['update_site_alias_meta_cache'] );
}

// Fetch full site alias objects from the primed cache.
Expand Down

0 comments on commit e8166ed

Please sign in to comment.