[buddypress-trac] [BuddyPress Trac] #5733: Use wp_cache_add_global_groups() so cache is applicable throughout multisite
    buddypress-trac 
    noreply at wordpress.org
       
    Sat Oct 11 18:56:28 UTC 2014
    
    
  
#5733: Use wp_cache_add_global_groups() so cache is applicable throughout
multisite
--------------------------+-----------------------------
 Reporter:  wpdennis      |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Future Release
Component:  Core          |     Version:  2.0
 Severity:  minor         |  Resolution:
 Keywords:  2nd-opinion   |
--------------------------+-----------------------------
Comment (by r-a-y):
 > But most of our caching doesn't actually use the global group - it uses
 object-type-specific cache groups (like 'bp_activity'). Creating a wrapper
 in one place suggests creating a wrapper everywhere, and I don't want to
 go wrapper-crazy without good argument :)
 For sure, but we can default to one global group, which should handle the
 majority of spots.
 For those that need new groups, we add it in the additional parameter -
 eg. `bp_cache_set( 'bp_messages_unread_count', $count, 'bp_counts' );`
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5733#comment:11>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
    
    
More information about the buddypress-trac
mailing list