[wp-trac] [WordPress Trac] #11772: ms-admin.php should use the available cached data
WordPress Trac
wp-trac at lists.automattic.com
Wed Jan 6 18:16:24 UTC 2010
#11772: ms-admin.php should use the available cached data
-------------------------------+--------------------------------------------
Reporter: Denis-de-Bernardy | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.0
Component: Multisite | Version: 3.0
Severity: normal | Keywords:
-------------------------------+--------------------------------------------
There are two calls at the top of the file:
{{{
$c_users = $wpdb->get_var("SELECT COUNT(id) FROM {$wpdb->users}");
$c_blogs = $wpdb->get_var("SELECT COUNT(blog_id) FROM {$wpdb->blogs}");
}}}
but in ms-functions.php, there are several stat functions that could be
used and/or improved so that we access (at least partially) cached data.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/11772>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list