[buddypress-trac] [BuddyPress Trac] #5398: Review metadata caching across components
buddypress-trac
noreply at wordpress.org
Sun Feb 16 21:47:19 UTC 2014
#5398: Review metadata caching across components
--------------------------+---------------------------
Reporter: boonebgorges | Owner: boonebgorges
Type: task | Status: assigned
Priority: normal | Milestone: 2.0
Component: Core | Version:
Severity: normal | Resolution:
Keywords: |
--------------------------+---------------------------
Comment (by boonebgorges):
In [changeset:"7898"]:
{{{
#!CommitTicketReference repository="" revision="7898"
Introduce $args param to BP_Groups_Group constructor and
groups_get_group()
This argument array can contain the following toggles:
- update_meta_cache (pre-fetch all group metadata for the queried group)
- populate_extras (pre-fetch last activity, admin/mod lists, and current
user
access/membership status in queried group)
Both items default to false, for backward compatibility
Allowing these pre-fetch toggles to be set to false allows us to avoid
large
numbers of unnecessary database queries in certain cases, such as when
secondary avatars are populated on activity directories.
See #5398
}}}
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5398#comment:4>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list