From: Kunal Mehta Date: Thu, 25 May 2017 07:45:55 +0000 (-0700) Subject: Block: Avoid deprecated wfMemcKey() X-Git-Tag: 1.31.0-rc.0~3128^2 X-Git-Url: http://git.cyclocoop.org/%40spipnet%40?a=commitdiff_plain;h=49d810f45232dbf20a0ac55a8888127a0f3fccba;p=lhc%2Fweb%2Fwiklou.git Block: Avoid deprecated wfMemcKey() Change-Id: Ie23261b7b6dd9d03d314cf77d290bffb8df593cd --- 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 ) );