[wp-trac] [WordPress Trac] #11776: in ms-edit.php, a query could be removed by using the object cache

WordPress Trac wp-trac at lists.automattic.com
Wed Jan 6 19:01:49 UTC 2010


#11776: in ms-edit.php, a query could be removed by using the object cache
-------------------------------+--------------------------------------------
 Reporter:  Denis-de-Bernardy  |       Owner:     
     Type:  defect (bug)       |      Status:  new
 Priority:  low                |   Milestone:  3.0
Component:  Optimization       |     Version:  3.0
 Severity:  minor              |    Keywords:     
-------------------------------+--------------------------------------------
 there is a call that goes:

 {{{
 $uid = $wpdb->get_var( "SELECT ID FROM {$wpdb->users} WHERE
 user_login='{$site_admin}'" );
 }}}

 we could use the wp_cache_get() and user logins bucket instead to avoid a
 query.

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


More information about the wp-trac mailing list