[buddypress-trac] [BuddyPress Trac] #6242: Possible conflict with BuddyPress member type user cache and the WordPress term cache

buddypress-trac noreply at wordpress.org
Mon Feb 23 01:16:50 UTC 2015


#6242: Possible conflict with BuddyPress member type user cache and the WordPress
term cache
--------------------------+--------------------
 Reporter:  imath         |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  2.2.2
Component:  API - Cache   |     Version:  2.2
 Severity:  normal        |  Resolution:
 Keywords:  2nd-opinion   |
--------------------------+--------------------

Comment (by boonebgorges):

 But BP is *not* caching a list of term objects. We're caching an array of
 term `name`s.

 It's also not quite true that we only use the cache when looking at single
 members. Member type data is prefetched in member loops (see
 `bp_members_prefetch_member_type()`.

 I'm going to go with `_value`, because it's a bit clearer that what's
 being cached is the value for a given member (strictly speaking, a
 term_relationship), not the type itself (which is a term).

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/6242#comment:4>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list