From: daniel Date: Thu, 6 Dec 2012 17:55:05 +0000 (+0100) Subject: (minor) use wfMemcKey when caching sites list. X-Git-Tag: 1.31.0-rc.0~21347^2 X-Git-Url: http://git.cyclocoop.org/%24action?a=commitdiff_plain;h=5750063b394bdf53dd6eae126046aa77f571cb9b;p=lhc%2Fweb%2Fwiklou.git (minor) use wfMemcKey when caching sites list. Change-Id: I879b213a31809e9f01a7e86f50c87f04f187e635 --- diff --git a/includes/site/Sites.php b/includes/site/Sites.php index 56d567ea81..a0ebfc1dcf 100644 --- a/includes/site/Sites.php +++ b/includes/site/Sites.php @@ -97,7 +97,7 @@ class Sites { if ( $source === 'cache' ) { if ( $this->sites === false ) { $cache = wfGetMainCache(); - $sites = $cache->get( 'sites-cache' ); + $sites = $cache->get( wfMemcKey( 'SiteList' ) ); if ( is_object( $sites ) ) { $this->sites = $sites; @@ -170,7 +170,7 @@ class Sites { } $cache = wfGetMainCache(); - $cache->set( 'sites-cache', $this->sites ); + $cache->set( wfMemcKey( 'SiteList' ), $this->sites ); } /**