$throttleKey = wfGlobalCacheKey( 'throttler', $this->type, $index, $ipKey, $userKey );
$throttleCount = $this->cache->get( $throttleKey );
$throttleKey = wfGlobalCacheKey( 'throttler', $this->type, $index, $ipKey, $userKey );
$throttleCount = $this->cache->get( $throttleKey );
$this->cache->add( $throttleKey, 1, $expiry );
} elseif ( $throttleCount < $count ) { // throttle limited not yet reached
$this->cache->incr( $throttleKey );
} else { // throttled
$this->logRejection( [
$this->cache->add( $throttleKey, 1, $expiry );
} elseif ( $throttleCount < $count ) { // throttle limited not yet reached
$this->cache->incr( $throttleKey );
} else { // throttled
$this->logRejection( [
. 'from username {username} and IP {ip}';
// If we are hitting a throttle for >= warningLimit attempts, it is much more likely to be
. 'from username {username} and IP {ip}';
// If we are hitting a throttle for >= warningLimit attempts, it is much more likely to be