From a02ed0a8b0295878a3524a91ff57f9616dd503e9 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Mon, 7 Feb 2005 06:16:02 +0000 Subject: [PATCH] * (bug 1474) Switch to better-cached index for statistics page count --- includes/SpecialStatistics.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.20.1