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

WordPress Trac wp-trac at lists.automattic.com
Fri Jul 6 22:34:16 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 has-patch  |
------------------------------------+------------------------------

Comment (by scribu):

 I'm not sure if caching the whole user object is a good idea, since it
 contains the capabilities for the current blog. Then, if you call
 for_blog() on it with a different ID, you end up in a weird state.

 Besides, WP_User::init() doesn't seem that expensive.

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


More information about the wp-trac mailing list