Aaron Schulz has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/246460

Change subject: Remove "activeusers-updated" cache key usage
......................................................................

Remove "activeusers-updated" cache key usage

RecentChangesUpdateJob already takes care of this.

Change-Id: I166b37c60fbb05046150a63592fa26fc47027181
---
M includes/specials/SpecialStatistics.php
1 file changed, 0 insertions(+), 13 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/60/246460/1

diff --git a/includes/specials/SpecialStatistics.php 
b/includes/specials/SpecialStatistics.php
index 8de6f8b..e06bae0 100644
--- a/includes/specials/SpecialStatistics.php
+++ b/includes/specials/SpecialStatistics.php
@@ -36,8 +36,6 @@
        }
 
        public function execute( $par ) {
-               global $wgMemc;
-
                $miserMode = $this->getConfig()->get( 'MiserMode' );
 
                $this->setHeaders();
@@ -50,17 +48,6 @@
                $this->users = SiteStats::users();
                $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' ) );
 

-- 
To view, visit https://gerrit.wikimedia.org/r/246460
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I166b37c60fbb05046150a63592fa26fc47027181
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Aaron Schulz <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to