X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fauth%2FThrottler.php;h=3125bd3fd8e8da37939336bbb642ce6e2f93715e;hb=ab88a4c37575527f7bf44771d6285155cf126522;hp=8a10ecb0656aa109744833d07131c6cf129659cf;hpb=a9ea3a3ee9d5655ea2bd4638ad77e6ecc1d4a430;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 ); } }