X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;ds=sidebyside;f=includes%2Fauth%2FThrottler.php;h=3125bd3fd8e8da37939336bbb642ce6e2f93715e;hb=6c9a2923fe1ee3a65cb027be5e781772f2b12fbd;hp=8a10ecb0656aa109744833d07131c6cf129659cf;hpb=212f96ec2a4f06becb4a51efe411664bd0abf856;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/auth/Throttler.php b/includes/auth/Throttler.php index 8a10ecb065..3125bd3fd8 100644 --- a/includes/auth/Throttler.php +++ b/includes/auth/Throttler.php @@ -127,7 +127,7 @@ class Throttler implements LoggerAwareInterface { continue; } - $throttleKey = wfGlobalCacheKey( 'throttler', $this->type, $index, $ipKey, $userKey ); + $throttleKey = $this->cache->makeGlobalKey( 'throttler', $this->type, $index, $ipKey, $userKey ); $throttleCount = $this->cache->get( $throttleKey ); if ( !$throttleCount ) { // counter not started yet @@ -170,7 +170,7 @@ class Throttler implements LoggerAwareInterface { $userKey = $username ? md5( $username ) : null; foreach ( $this->conditions as $index => $specificThrottle ) { $ipKey = isset( $specificThrottle['allIPs'] ) ? null : $ip; - $throttleKey = wfGlobalCacheKey( 'throttler', $this->type, $index, $ipKey, $userKey ); + $throttleKey = $this->cache->makeGlobalKey( 'throttler', $this->type, $index, $ipKey, $userKey ); $this->cache->delete( $throttleKey ); } }