From: Aaron Schulz Date: Thu, 15 Oct 2015 03:51:51 +0000 (-0700) Subject: Remove "activeusers-updated" cache key usage X-Git-Tag: 1.31.0-rc.0~9352^2 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dcompta/comptes/journal.php?a=commitdiff_plain;h=b16734996ad55b9463c6a28f91cf2b195308d120;p=lhc%2Fweb%2Fwiklou.git Remove "activeusers-updated" cache key usage RecentChangesUpdateJob already takes care of this. Change-Id: I166b37c60fbb05046150a63592fa26fc47027181 --- diff --git a/includes/specials/SpecialStatistics.php b/includes/specials/SpecialStatistics.php index 8de6f8b8d4..e06bae053c 100644 --- a/includes/specials/SpecialStatistics.php +++ b/includes/specials/SpecialStatistics.php @@ -36,8 +36,6 @@ class SpecialStatistics extends SpecialPage { } public function execute( $par ) { - global $wgMemc; - $miserMode = $this->getConfig()->get( 'MiserMode' ); $this->setHeaders(); @@ -51,17 +49,6 @@ class SpecialStatistics extends SpecialPage { $this->activeUsers = SiteStats::activeUsers(); $this->hook = ''; - # Set active user count - if ( !$miserMode ) { - $key = wfMemcKey( 'sitestats', 'activeusers-updated' ); - // Re-calculate the count if the last tally is old... - if ( !$wgMemc->get( $key ) ) { - $dbw = wfGetDB( DB_MASTER ); - SiteStatsUpdate::cacheUpdate( $dbw ); - $wgMemc->set( $key, '1', 24 * 3600 ); // don't update for 1 day - } - } - $text = Xml::openElement( 'table', array( 'class' => 'wikitable mw-statistics-table' ) ); # Statistic - pages