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-functions.php

    r7885 r7894  
    448448        'page'            => 1,        // The page to return if limiting per page
    449449        'populate_extras' => true,     // Fetch meta such as is_banned and is_member
     450        'update_meta_cache' => true,   // Pre-fetch groupmeta for queried groups
    450451    );
    451452
     
    463464        'page'            => $r['page'],
    464465        'populate_extras' => $r['populate_extras'],
     466        'update_meta_cache' => $r['update_meta_cache'],
    465467        'order'           => $r['order'],
    466468        'orderby'         => $r['orderby'],
Note: See TracChangeset for help on using the changeset viewer.