[buddypress-trac] [BuddyPress Trac] #5398: Review metadata caching across components
    buddypress-trac 
    noreply at wordpress.org
       
    Mon Feb 17 19:42:04 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:"7914"]:
 {{{
 #!CommitTicketReference repository="" revision="7914"
 Introduce metadata pre-fetching for xprofile objects
 XProfile objects (groups, fields, and data) are generally fetched in a
 nested
 way, as within the context of a bp_has_profile() loop. Thus, it makes
 sense to
 pre-fetch xprofile metadata within a bp_has_profile() loop in a nested way
 as
 well. This changeset introduces bp_xprofile_update_meta_cache(), which is
 able
 to fetch all uncached metadata for nested meta types with a single
 database
 query.
 This changeset also introduces an 'update_meta_cache' parameter to the
 bp_has_profile() stack. This param allows developers to disable the pre-
 fetching introduced here. Defaults to true.
 See #5398
 }}}
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5398#comment:9>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
    
    
More information about the buddypress-trac
mailing list