[buddypress-trac] [BuddyPress Trac] #5733: Use wp_cache_add_global_groups() so cache is applicable throughout multisite (was: get_inbox_count() returns wrong numbers in multisite environments)

buddypress-trac noreply at wordpress.org
Tue Jul 1 17:29:41 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:  Awaiting Review
Component:  Messaging                 |     Version:  2.0
 Severity:  minor                     |  Resolution:
 Keywords:  dev-feedback 2nd-opinion  |
--------------------------------------+------------------------------

Comment (by r-a-y):

 Good catch, wpdennis.

 The one concern I have is sites using a WP multi-network with BuddyPress
 via a plugin like BP Multi-Network or BuddyPress Multi-Network.  Not many
 people are using WP multi-networks with BuddyPress (I know I haven't!),
 but for those that are, this would probably cause tons of cache issues.

 We could probably refactor the existing `bp_core_add_global_group()`
 function to add the additional cache groups and add a filter to bail out
 of registering these groups if necessary.

 Would need some testing with one or both of those BP multi-network
 plugins.

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


More information about the buddypress-trac mailing list