From 5750063b394bdf53dd6eae126046aa77f571cb9b Mon Sep 17 00:00:00 2001 From: daniel Date: Thu, 6 Dec 2012 18:55:05 +0100 Subject: [PATCH] (minor) use wfMemcKey when caching sites list. Change-Id: I879b213a31809e9f01a7e86f50c87f04f187e635 --- includes/site/Sites.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ); } /** -- 2.20.1