From 49d810f45232dbf20a0ac55a8888127a0f3fccba Mon Sep 17 00:00:00 2001 From: Kunal Mehta Date: Thu, 25 May 2017 00:45:55 -0700 Subject: [PATCH] Block: Avoid deprecated wfMemcKey() Change-Id: Ie23261b7b6dd9d03d314cf77d290bffb8df593cd --- includes/Block.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/Block.php b/includes/Block.php index 0b7f7b2544..a7e7308a1d 100644 --- a/includes/Block.php +++ b/includes/Block.php @@ -710,7 +710,7 @@ class Block { // than getting the msg raw and explode()'ing it. $cache = MediaWikiServices::getInstance()->getMainWANObjectCache(); $lines = $cache->getWithSetCallback( - wfMemcKey( 'ipb', 'autoblock', 'whitelist' ), + $cache->makeKey( 'ipb', 'autoblock', 'whitelist' ), $cache::TTL_DAY, function ( $curValue, &$ttl, array &$setOpts ) { $setOpts += Database::getCacheSetOptions( wfGetDB( DB_REPLICA ) ); -- 2.20.1