From: Brion Vibber Date: Mon, 7 Feb 2005 06:16:02 +0000 (+0000) Subject: * (bug 1474) Switch to better-cached index for statistics page count X-Git-Tag: 1.5.0alpha1~761 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22brouteur%22%2C%28%24id_rubrique%20?a=commitdiff_plain;h=a02ed0a8b0295878a3524a91ff57f9616dd503e9;p=lhc%2Fweb%2Fwiklou.git * (bug 1474) Switch to better-cached index for statistics page count --- diff --git a/includes/SpecialStatistics.php b/includes/SpecialStatistics.php index 92ec95dca8..704a312daf 100644 --- a/includes/SpecialStatistics.php +++ b/includes/SpecialStatistics.php @@ -17,7 +17,7 @@ function wfSpecialStatistics() { $dbr =& wfGetDB( DB_SLAVE ); extract( $dbr->tableNames( 'page', 'site_stats', 'user', 'user_rights' ) ); - $sql = "SELECT COUNT(page_id) AS total FROM $page"; + $sql = "SELECT COUNT(page_namespace) AS total FROM $page"; $res = $dbr->query( $sql, $fname ); $row = $dbr->fetchObject( $res ); $total = $row->total;