From: Aaron Schulz Date: Thu, 9 Jul 2015 20:27:44 +0000 (-0700) Subject: Made LoadMonitor use wfGlobalCacheKey() and tweaked the key name X-Git-Tag: 1.31.0-rc.0~10827^2 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22calendrier%22%2C%22type=semaine%22%29%20.%20%22?a=commitdiff_plain;h=e8552b7e5e3fdb741f03224855a0b324c6920c74;p=lhc%2Fweb%2Fwiklou.git Made LoadMonitor use wfGlobalCacheKey() and tweaked the key name * Changing the key name makes sense after 9cf6637 to avoid problems with het deploy and competing key formats. Bug: T105373 Change-Id: I2e6888198b1ee4fb4f758070b03d7fe3eac547fc --- diff --git a/includes/db/LoadMonitor.php b/includes/db/LoadMonitor.php index 7dc2da0647..01d2f95472 100644 --- a/includes/db/LoadMonitor.php +++ b/includes/db/LoadMonitor.php @@ -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 ) ); } }