[wp-trac] [WordPress Trac] #32472: is_user_member_of_blog() can be very slow when a user is a member of hundreds of sites

WordPress Trac noreply at wordpress.org
Sat May 23 17:59:47 UTC 2015


#32472: is_user_member_of_blog() can be very slow when a user is a member of
hundreds of sites
--------------------------+-------------------------------------
 Reporter:  sammybeats    |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Users         |     Version:  3.0
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:  multisite, performance
--------------------------+-------------------------------------

Comment (by BinaryKitten):

 Replying to [comment:2 sammybeats]:
 >
 > Yes! Definitely an improvement on what I posted, with one (questionable)
 change and one correction:
 >

 I can live with that. Those errors teach me not to try and code in a
 browser text box.

 I've taken the code and created a patch/diff (see attached)

--
Ticket URL: <https://core.trac.wordpress.org/ticket/32472#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list