Skip to content

Commit c3c8f94

Browse files
committed
Revert setting
1 parent a81280c commit c3c8f94

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/controllers/CartController.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@
1919
use craft\elements\User;
2020
use craft\errors\ElementNotFoundException;
2121
use craft\errors\MissingComponentException;
22-
use craft\helpers\App;
23-
use craft\helpers\Json;
2422
use craft\helpers\StringHelper;
2523
use craft\helpers\UrlHelper;
2624
use Illuminate\Support\Collection;
@@ -96,7 +94,7 @@ public function behaviors(): array
9694
'cart-by-number' => [
9795
'class' => RateLimit::class,
9896
'limit' => 1,
99-
'window' => (float)App::env('CRAFT_COMMERCE_CART_RATE_LIMIT_WINDOW') ?: 0.5,
97+
'window' => 1,
10098
// Only apply rate limiting when a cart number is explicitly passed
10199
'active' => function(Context $context, $rateLimitId) {
102100
return $context->request->getBodyParam('number') || $context->request->getQueryParam('number');

0 commit comments

Comments
 (0)