[wp-trac] [WordPress Trac] #21120: Optimize get_user_by()

WordPress Trac wp-trac at lists.automattic.com
Sat Jun 30 13:38:37 UTC 2012


#21120: Optimize get_user_by()
--------------------------+------------------------------
 Reporter:  kurtpayne     |       Owner:
     Type:  enhancement   |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Performance   |     Version:
 Severity:  normal        |  Resolution:
 Keywords:  dev-feedback  |
--------------------------+------------------------------

Comment (by nacin):

 Replying to [comment:2 scribu]:
 > What we could do is collect all the user ids and call get_users() with
 them. This will in turn call cache_users().

 Perhaps WP_Query should have a flag to do this. We already prime terms,
 meta, and optionally comments for a post. It then could be on by default
 in the admin.

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


More information about the wp-trac mailing list