We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a81280c commit c3c8f94Copy full SHA for c3c8f94
1 file changed
src/controllers/CartController.php
@@ -19,8 +19,6 @@
19
use craft\elements\User;
20
use craft\errors\ElementNotFoundException;
21
use craft\errors\MissingComponentException;
22
-use craft\helpers\App;
23
-use craft\helpers\Json;
24
use craft\helpers\StringHelper;
25
use craft\helpers\UrlHelper;
26
use Illuminate\Support\Collection;
@@ -96,7 +94,7 @@ public function behaviors(): array
96
94
'cart-by-number' => [
97
95
'class' => RateLimit::class,
98
'limit' => 1,
99
- 'window' => (float)App::env('CRAFT_COMMERCE_CART_RATE_LIMIT_WINDOW') ?: 0.5,
+ 'window' => 1,
100
// Only apply rate limiting when a cart number is explicitly passed
101
'active' => function(Context $context, $rateLimitId) {
102
return $context->request->getBodyParam('number') || $context->request->getQueryParam('number');
0 commit comments