X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FBlock.php;h=a7e7308a1d7810ac4110633a4f3f8c1a0e35b184;hb=a66d17af3cdbfaf1a12096ba7038c7cb744eeb68;hp=cf6642a6f9d3a9a72faab812a699f4513ed07b44;hpb=556e54350afa9c40dce30ef3ef7e7b61ba109aa6;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/Block.php b/includes/Block.php index cf6642a6f9..a7e7308a1d 100644 --- a/includes/Block.php +++ b/includes/Block.php @@ -20,6 +20,8 @@ * @file */ +use Wikimedia\Rdbms\Database; +use Wikimedia\Rdbms\IDatabase; use MediaWiki\MediaWikiServices; class Block { @@ -708,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 ) );