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

buddypress-trac noreply at wordpress.org
Sat Feb 24 15:03:05 UTC 2018

#7436: Very slow check_is_friend function
 Reporter:  januzi_pl     |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  high          |   Milestone:  3.0
Component:  Friends       |     Version:  2.7
 Severity:  major         |  Resolution:
 Keywords:  dev-feedback  |

Comment (by dcavins):

 I looked into the lazyload part of the WP_Query class, and it's
 interesting. It's more sophisticated than what I'm doing here, in that it
 gathers up args, but doesn't make (the more efficient) database query
 until the `get_meta()` call is made. So it really is lazy.

 Is it overselling this cache priming function to call it
 `lazyload_friendship_cache()` since it's actually going to make a query?

 Thanks again for your comments.

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

More information about the buddypress-trac mailing list