[wp-trac] [WordPress Trac] #40613: Add query cache to WP_User_Query class

WordPress Trac noreply at wordpress.org
Tue Oct 4 15:12:09 UTC 2022


#40613: Add query cache to WP_User_Query class
-------------------------------------+------------------------------
 Reporter:  johnjamesjacoby          |       Owner:  (none)
     Type:  defect (bug)             |      Status:  new
 Priority:  normal                   |   Milestone:  Awaiting Review
Component:  Users                    |     Version:  3.1
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |     Focuses:  performance
-------------------------------------+------------------------------

Comment (by khoipro):

 When running wp_dropdown_users with 90k users (from my project), even if
 we set 'role' is only administrator, the user query still slow. The
 alternative we must fix is providing a input text and a custom REST API to
 find a single user by user_login and replace input value on save.

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


More information about the wp-trac mailing list