[buddypress-trac] [BuddyPress Trac] #7436: Very slow check_is_friend function

buddypress-trac noreply at wordpress.org
Thu Mar 29 05:39:50 UTC 2018


#7436: Very slow check_is_friend function
------------------------------------+---------------------------
 Reporter:  januzi_pl               |       Owner:  David Cavins
     Type:  defect (bug)            |      Status:  reopened
 Priority:  high                    |   Milestone:  3.0
Component:  Friends                 |     Version:  2.7
 Severity:  major                   |  Resolution:
 Keywords:  dev-feedback has-patch  |
------------------------------------+---------------------------
Changes (by r-a-y):

 * keywords:  dev-feedback => dev-feedback has-patch
 * status:  closed => reopened
 * resolution:  fixed =>


Comment:

 While debugging #7726, I encountered a bug with our friendship incremented
 cache not being purged when using either `friends_remove_friend()`,
 `friends_accept_friendship()`, `friends_reject_friendship()` or
 `friends_withdraw_friendship()`.

 `purge-incremented-cache.patch` adds a unit test showcasing the bug with
 `friends_remove_friend()` and fixes the problem by purging all friend-
 incremented caches.

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


More information about the buddypress-trac mailing list