[buddypress-trac] [BuddyPress Trac] #6978: Friends: Add caching to BP_Friends_Friendship class

buddypress-trac noreply at wordpress.org
Tue Sep 20 14:42:16 UTC 2016

#6978: Friends: Add caching to BP_Friends_Friendship class
 Reporter:  r-a-y                   |       Owner:  dcavins
     Type:  enhancement             |      Status:  closed
 Priority:  normal                  |   Milestone:  Future Release
Component:  Friends                 |     Version:  1.0
 Severity:  normal                  |  Resolution:  fixed
 Keywords:  dev-feedback has-patch  |
Changes (by dcavins):

 * status:  accepted => closed
 * resolution:   => fixed


 In [changeset:"11124"]:
 #!CommitTicketReference repository="" revision="11124"
 Use new function BP_Friends_Friendships::get_friendships().

 Take advantage of the caching introduced
 in `BP_Friends_Friendships::get_friendships()`
 by using `get_friendships()` as the underlying function in
 `get_friend_user_ids()`, `get_friendship_id()`, `total_friend_count()`,
 and `delete_all_for_user()`.

 Props dcavins, boonebgorges.

 Fixes #6978.

Ticket URL: <https://buddypress.trac.wordpress.org/ticket/6978#comment:15>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac

More information about the buddypress-trac mailing list