[wp-trac] [WordPress Trac] #36508: Call cache_users() when 'fields'=>'all' in WP_User_Query

WordPress Trac noreply at wordpress.org
Wed Apr 13 12:07:34 UTC 2016


#36508: Call cache_users() when 'fields'=>'all' in WP_User_Query
-----------------------------+----------------------------
 Reporter:  danielbachhuber  |      Owner:
     Type:  defect (bug)     |     Status:  new
 Priority:  normal           |  Milestone:  Future Release
Component:  Users            |    Version:
 Severity:  normal           |   Keywords:  needs-patch
  Focuses:  performance      |
-----------------------------+----------------------------
 Because roles and caps are populated (r32001), which is a meta call, we
 should proactively call `cache_users()` and pre-empt dozens of unnecessary
 meta SELECTs.

 cc @boonebgorges

--
Ticket URL: <https://core.trac.wordpress.org/ticket/36508>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list