dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
faa44ca
)
Block: Avoid deprecated wfMemcKey()
author
Kunal Mehta
<legoktm@member.fsf.org>
Thu, 25 May 2017 07:45:55 +0000
(
00:45
-0700)
committer
Kunal Mehta
<legoktm@member.fsf.org>
Thu, 25 May 2017 18:20:23 +0000
(11:20 -0700)
Change-Id: Ie23261b7b6dd9d03d314cf77d290bffb8df593cd
includes/Block.php
patch
|
blob
|
history
diff --git
a/includes/Block.php
b/includes/Block.php
index
0b7f7b2
..
a7e7308
100644
(file)
--- 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(
-
wfMemc
Key( 'ipb', 'autoblock', 'whitelist' ),
+
$cache->make
Key( 'ipb', 'autoblock', 'whitelist' ),
$cache::TTL_DAY,
function ( $curValue, &$ttl, array &$setOpts ) {
$setOpts += Database::getCacheSetOptions( wfGetDB( DB_REPLICA ) );