[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
Wed Jun 3 23:41:23 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:  enhancement                 |      Status:  new
 Priority:  normal                      |   Milestone:  Awaiting Review
Component:  Users                       |     Version:  3.0
 Severity:  normal                      |  Resolution:
 Keywords:  has-patch needs-unit-tests  |     Focuses:  multisite,
                                        |  performance
----------------------------------------+----------------------------------
Changes (by johnbillion):

 * keywords:   => has-patch needs-unit-tests
 * type:  defect (bug) => enhancement


Comment:

 This looks like a sane way to handle this. +1

 It'll need tests, including ones to make sure that it continues to
 function as expected when a user is added to then removed from a blog, has
 their role removed, etc.

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


More information about the wp-trac mailing list