[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
Wed Aug 26 04:24:08 UTC 2015


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

Comment (by flynsarmy):

 I would also love to see this filter implemented as the default WP admin
 bar calls `get_blogs_of_user()` twice (once directly and once indirectly)
 AND admin-header.php calls it indirectly as well. That's a huge number of
 queries when a user has lots of sites.

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


More information about the wp-trac mailing list