[wp-trac] [WordPress Trac] #5392: get_user_by_email() and get_user* cleanup

WordPress Trac wp-trac at lists.automattic.com
Tue Nov 27 08:28:07 GMT 2007


#5392: get_user_by_email() and get_user* cleanup
---------------------+------------------------------------------------------
 Reporter:  ryan     |       Owner:  anonymous 
     Type:  defect   |      Status:  new       
 Priority:  normal   |   Milestone:  2.4       
Component:  General  |     Version:  2.4       
 Severity:  normal   |    Keywords:  user cache
---------------------+------------------------------------------------------
 Add a get_user_by_email() function to get a user by email address.  It
 should use an email to user id cache to avoid DB trips. If an email
 address does not match a user, cache that fact. If this results in too
 much stuff in the cache, we can lose this part.

 While we're at it.  Clean up the get_user* functions.  Refactor the back
 compat and caching code into a new private function shared by all of the
 get functions.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/5392>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list