[wp-trac] [WordPress Trac] #15458: Lazy-load usermeta into the user object

WordPress Trac wp-trac at lists.automattic.com
Mon Aug 8 20:39:12 UTC 2011


#15458: Lazy-load usermeta into the user object
-------------------------------------+------------------
 Reporter:  nacin                    |       Owner:
     Type:  enhancement              |      Status:  new
 Priority:  normal                   |   Milestone:  3.3
Component:  Performance              |     Version:
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |
-------------------------------------+------------------

Comment (by scribu):

 [attachment:lazy-load.3.diff]:

 * prevent useless query in WP_User::get_data_by() when value is empty
 * remove clean_user_cache() call from *_metadata() function (not necessary
 anymore)
 * use WP_User::get_data_by() in clean_user_cache() for efficiency

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


More information about the wp-trac mailing list