Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/16/2014 09:33:01 PM (8 years ago)
Author:
boonebgorges
Message:

Add update_meta_cache param for BP_Groups_Group stack

This allows us to avoid unneeded meta cache pre-fetching, following WP_Query.

See #5398

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-groups/bp-groups-classes.php

    r7648 r7894  
    610610            'include'         => false,
    611611            'populate_extras' => true,
     612            'update_meta_cache' => true,
    612613            'exclude'         => false,
    613614            'show_hidden'     => false,
     
    774775
    775776        // Grab all groupmeta
    776         bp_groups_update_meta_cache( $group_ids );
     777        if ( ! empty( $r['update_meta_cache'] ) ) {
     778            bp_groups_update_meta_cache( $group_ids );
     779        }
    777780
    778781        unset( $sql, $total_sql );
Note: See TracChangeset for help on using the changeset viewer.