[buddypress-trac] [BuddyPress Trac] #5733: get_inbox_count() returns wrong numbers in multisite environments

buddypress-trac noreply at wordpress.org
Tue Jul 1 13:08:01 UTC 2014


#5733: get_inbox_count() returns wrong numbers in multisite environments
--------------------------+-----------------------------
 Reporter:  wpdennis      |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Messaging     |    Version:  2.0
 Severity:  minor         |   Keywords:
--------------------------+-----------------------------
 In a multisite installation with object cache
 BP_Messages_Thread::get_inbox_count() will be cached once per blog. After
 reading a message, only the main blog cache entry gets invalidated. All
 other blogs are showing wrong numbers.

 Maybe the cache key "bp_messages_unread_count" should be added as a global
 group:

 {{{
 wp_cache_add_global_groups('bp_messages_unread_count');
 }}}

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


More information about the buddypress-trac mailing list