|
@@ -185,7 +185,7 @@ |
|
|
block discarded – undo |
|
185
|
185
|
$now = round(microtime(true) * 1000); |
|
186
|
186
|
$cache = Craft::$app->getCache(); |
|
187
|
187
|
$then = $cache->get(self::LAST_BEACON_CACHE_KEY); |
|
188
|
|
- if (($then !== false) && ($now - (int)$then < Webperf::$settings->rateLimitMs)) { |
|
|
188
|
+ if (($then !== false) && ($now - (int) $then < Webperf::$settings->rateLimitMs)) { |
|
189
|
189
|
$limited = true; |
|
190
|
190
|
Craft::warning('Beacon ignored due to rate limiting', __METHOD__); |
|
191
|
191
|
} |
Please login to merge, or discard this patch.