Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/16/2014 09:33:01 PM (13 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-template.php

    r7865 r7894  
    144144                        'search_terms'    => '',
    145145                        'meta_query'      => false,
    146                         'populate_extras' => true
     146                        'populate_extras' => true,
     147                        'update_meta_cache' => true,
    147148                );
    148149
     
    175176                                'exclude'         => $exclude,
    176177                                'populate_extras' => $populate_extras,
     178                                'update_meta_cache' => $update_meta_cache,
    177179                                'show_hidden'     => $show_hidden
    178180                        ) );
     
    329331
    330332                'populate_extras' => true,     // Get extra meta - is_member, is_banned
     333                'update_meta_cache' => true,
    331334        );
    332335
     
    357360                'include'         => $r['include'],
    358361                'exclude'         => $r['exclude'],
    359                 'populate_extras' => (bool) $r['populate_extras']
     362                'populate_extras' => (bool) $r['populate_extras'],
     363                'update_meta_cache' => (bool) $r['update_meta_cache'],
    360364        ) );
    361365
Note: See TracChangeset for help on using the changeset viewer.