[buddypress-trac] [BuddyPress Trac] #7436: Very slow check_is_friend function
buddypress-trac
noreply at wordpress.org
Mon Feb 6 02:59:45 UTC 2017
#7436: Very slow check_is_friend function
--------------------------+-------------------
Reporter: januzi_pl | Owner:
Type: defect (bug) | Status: new
Priority: low | Milestone: 2.7.5
Component: Friends | Version:
Severity: major | Keywords:
--------------------------+-------------------
According to xdebug's cachegrind log this function (and connected to it:
get_friendships, populate and construct ) is generating the most load in
the site. The log says that construct and populate are being called over
200k times (and the site hasn't even got so many users). This leads to
200k calls to wp_cache_get, and in the result over 400k calls to
WP_Object_Cache->get.
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/7436>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list