From f68c3ce7bb5f7b9bdbe196754cfc950a9213fe34 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Sun, 21 Sep 2008 13:00:11 +0000 Subject: [PATCH] Run query for people that don't have $wgMiserMode on for activeusers (bug 15666) --- includes/specials/SpecialStatistics.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/includes/specials/SpecialStatistics.php b/includes/specials/SpecialStatistics.php index 515ada6cce..b4835c9307 100644 --- a/includes/specials/SpecialStatistics.php +++ b/includes/specials/SpecialStatistics.php @@ -38,6 +38,11 @@ function wfSpecialStatistics( $par = '' ) { formatRow( wfMsgExt( 'statistics-views-peredit', array( 'parseinline' ) ), $wgLang->formatNum( sprintf( '%.2f', $edits ? $views / $edits : 0 ) ) ); } + # Set active user count + if( !$wgMiserMode ) { + $dbw = wfGetDB( DB_MASTER ); + SiteStatsUpdate::cacheUpdate( $dbw ); + } if( $wgRequest->getVal( 'action' ) == 'raw' ) { # Depreciated, kept for backwards compatibility -- 2.20.1