Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/17/2014 12:35:26 AM (8 years ago)
Author:
boonebgorges
Message:

Don't prime groupmeta cache in BP_Groups_Group::construct()

groups_get_groupmeta() now uses the core API functions. get_metadata() works by
priming the cache with *all* object metadata when requesting any piece of
metadata for that object. This means that, instead of pre-fetching groupmeta
when instantiating BP_Groups_Group, we wait until it happens in get_metadata().
At best, this can help us to avoid pre-fetching a meta cache that will not be
used.

See #5398

File:
1 edited

Legend:

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

    r7898 r7903  
    4545        'load_users'        => false,
    4646        'populate_extras'   => true,
    47         'update_meta_cache' => true,
    4847    );
    4948
     
    5655        $group_args = array(
    5756            'populate_extras'   => $populate_extras,
    58             'update_meta_cache' => $update_meta_cache,
    5957        );
    6058
Note: See TracChangeset for help on using the changeset viewer.