[wp-trac] [WordPress Trac] #31746: get_blogs_of_user() can be very slow when a user is a member of thousands of sites

WordPress Trac noreply at wordpress.org
Mon Jan 4 18:22:37 UTC 2016


#31746: get_blogs_of_user() can be very slow when a user is a member of thousands
of sites
--------------------------+-----------------------------
 Reporter:  jtsternberg   |       Owner:  johnbillion
     Type:  defect (bug)  |      Status:  reviewing
 Priority:  normal        |   Milestone:  Future Release
Component:  Users         |     Version:  3.0
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:  multisite
--------------------------+-----------------------------

Comment (by ericlewis):

 Replying to [comment:13 jtsternberg]:
 > What should/would trigger cache invalidation?

 Not sure off the top of my head. Someone would need to take a good look at
 the ways a user is added to and removed from a site.
 `remove_user_from_blog()` and `add_user_to_blog()` exist, but I'm not sure
 if there would be other places to tap into. cc @jeremyfelt

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


More information about the wp-trac mailing list