[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
Thu Aug 27 20:01:40 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:  johnbillion
     Type:  enhancement              |      Status:  closed
 Priority:  normal                   |   Milestone:  4.4
Component:  Users                    |     Version:  3.0
 Severity:  normal                   |  Resolution:  fixed
 Keywords:  needs-testing has-patch  |     Focuses:  multisite, performance
-------------------------------------+-------------------------------------
Changes (by johnbillion):

 * status:  reviewing => closed
 * resolution:   => fixed


Comment:

 In [changeset:"33771"]:
 {{{
 #!CommitTicketReference repository="" revision="33771"
 Improve the efficiency of `is_user_member_of_blog()` by removing its use
 of `get_blogs_of_user()`. Adds additional tests.

 Fixes #32472
 Props BinaryKitten, sammybeats, johnbillion
 }}}

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


More information about the wp-trac mailing list