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

buddypress-trac noreply at wordpress.org
Thu May 12 20:42:58 UTC 2016

#6978: Friends: Add caching to BP_Friends_Friendship class
 Reporter:  r-a-y                |       Owner:
     Type:  enhancement          |      Status:  new
 Priority:  normal               |   Milestone:  Future Release
Component:  Component - Friends  |     Version:  1.0
 Severity:  normal               |  Resolution:
 Keywords:                       |

Comment (by dcavins):

 I've just added a patch that:
 Adds cache item `bp_friends_friendships`.
Introduce `BP_Friends_Friendship::get_friendships()` which uses the WP
 cache to store friendships and `wp_list_filter()` to filter them to return
 the right results.

 @r-a-y I realized as I was working on this that I wasn't sure this is the
 kind of caching you were talking about. Ha ha. Even if it isn't, I'd love
 some feedback. :)

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

More information about the buddypress-trac mailing list