[wp-trac] [WordPress Trac] #23609: get_users() causes a huge number of SQL queries causing 500 server errors

WordPress Trac noreply at wordpress.org
Mon Feb 25 21:45:36 UTC 2013


#23609: get_users() causes a huge number of SQL queries causing 500 server errors
--------------------------+------------------------------
 Reporter:  dpacmittal    |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Users         |     Version:
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+------------------------------

Comment (by SergeyBiryukov):

 The query comes from `update_meta_cache()`: [[BR]]
 http://core.trac.wordpress.org/browser/tags/3.5.1/wp-
 includes/meta.php#L556

 Call stack:
 {{{
 get_users, WP_User_Query->__construct, WP_User_Query->query,
 WP_User->__construct, WP_User->init, WP_User->for_blog,
 WP_User->_init_caps, get_user_meta, get_metadata, update_meta_cache
 }}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/23609#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list