Made LoadMonitor use wfGlobalCacheKey() and tweaked the key name
authorAaron Schulz <aschulz@wikimedia.org>
Thu, 9 Jul 2015 20:27:44 +0000 (13:27 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Thu, 9 Jul 2015 20:27:53 +0000 (13:27 -0700)
* Changing the key name makes sense after 9cf6637 to avoid
  problems with het deploy and competing key formats.

Bug: T105373
Change-Id: I2e6888198b1ee4fb4f758070b03d7fe3eac547fc

includes/db/LoadMonitor.php

index 7dc2da0..01d2f95 100644 (file)
@@ -166,6 +166,6 @@ class LoadMonitorMySQL implements LoadMonitor {
 
        private function getLagTimeCacheKey() {
                # Lag is per-server, not per-DB, so key on the master DB name
-               return wfForeignMemcKey( $this->parent->getServerName( 0 ), '', 'lag_times' );
+               return wfGlobalCacheKey( 'lag-times', $this->parent->getServerName( 0 ) );
        }
 }