Make WordPress Core

Opened 15 years ago

Closed 15 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's profile Denis-de-Bernardy Owned by:
Milestone: 3.0 Priority: low
Severity: minor Version: 3.0
Component: Optimization Keywords:
Focuses: multisite Cc:

Description

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
15 years ago

  • Keywords multisite added

#2 @ryan
15 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.