[buddypress-trac] [BuddyPress Trac] #6978: Friends: Add caching to BP_Friends_Friendship class
buddypress-trac
noreply at wordpress.org
Tue Sep 20 14:42:05 UTC 2016
#6978: Friends: Add caching to BP_Friends_Friendship class
------------------------------------+-----------------------------
Reporter: r-a-y | Owner: dcavins
Type: enhancement | Status: accepted
Priority: normal | Milestone: Future Release
Component: Friends | Version: 1.0
Severity: normal | Resolution:
Keywords: dev-feedback has-patch |
------------------------------------+-----------------------------
Comment (by dcavins):
In [changeset:"11122"]:
{{{
#!CommitTicketReference repository="" revision="11122"
Add bp_friends_friendships cache group.
Add friendship caching by the ID of the friendship.
Check the cache before querying for friendship
details in `BP_Friends_Friendship::populate`.
Update `get_user_ids_for_friendship()` to create
a new friendship object so it could possibly use
the cached object.
Props dcavins, boonebgorges.
See #6978.
}}}
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/6978#comment:13>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list