Make WordPress Core

Opened 8 years ago

Closed 8 years ago

#11776 closed defect (bug) (fixed)

in ms-edit.php, a query could be removed by using the object cache

Reported by: Denis-de-Bernardy Owned by:
Milestone: 3.0 Priority: low
Severity: minor Version: 3.0
Component: Optimization Keywords:
Focuses: multisite Cc:


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.

Change History (2)

#1 @nacin
8 years ago

  • Keywords multisite added

#2 @ryan
8 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [12935]) Use API to retrieve user. fixes #11776

Note: See TracTickets for help on using tickets.