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

WordPress Trac wp-trac at lists.automattic.com
Mon Aug 20 21:07:33 UTC 2012


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

Comment (by nacin):

 I think #13351 demonstrates that [21376] is probably too deep in the
 stack.

 The big thing here was map_meta_cap() and is_super_admin(). If we can
 optimize those two to use wp_get_current_user() when appropriate, that
 handles almost all of our WP_User::init calls.

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


More information about the wp-trac mailing list