[buddypress-trac] [BuddyPress Trac] #6220: Cache BP_Messages_Thread::get_recipients() to reduce inbox queries by 20

buddypress-trac noreply at wordpress.org
Fri Feb 13 17:22:58 UTC 2015


#6220: Cache BP_Messages_Thread::get_recipients() to reduce inbox queries by 20
-----------------------------------+------------------
 Reporter:  wpdennis               |       Owner:
     Type:  enhancement            |      Status:  new
 Priority:  normal                 |   Milestone:  2.3
Component:  Component - Messaging  |     Version:
 Severity:  normal                 |  Resolution:
 Keywords:                         |
-----------------------------------+------------------
Changes (by boonebgorges):

 * keywords:  dev-feedback =>
 * milestone:  Awaiting Review => 2.3


Comment:

 Very good catch on `get_recipients()`. We should definitely invalidate
 cache on thread deletion. I'm not sure whether it's possible in the BP
 interface to add a user to a thread when sending a subsequent message, but
 it's possible in the data model, so to be safe let's also invalidate a
 thread's recipient when a message is added to the thread.

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


More information about the buddypress-trac mailing list