Skip to content

Commit fd3dbcf

Browse files
committed
Increased Match throttling limits
1 parent 4dc9aa4 commit fd3dbcf

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

core/middlewares/middlewares.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,8 @@ def __call__(self, request):
144144

145145

146146
class ThrottleHeadersMiddleware(MiddlewareMixin):
147-
match_throttled_paths = ['recommend-beta', '$match']
147+
match_throttled_paths = ['$match', '/concepts/$match/']
148+
148149
def is_match_throttled_path(self, path):
149150
for match_path in self.match_throttled_paths:
150151
if match_path in path:

core/settings.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,8 +194,8 @@
194194
'guest_day': '10000/day',
195195
'standard_minute': '500/minute',
196196
'standard_day': '20000/day',
197-
'match_standard_minute': '120/minute',
198-
'match_standard_day': '2000/day',
197+
'match_standard_minute': '300/minute',
198+
'match_standard_day': '5000/day',
199199
}
200200
MIDDLEWARE = [*MIDDLEWARE, 'core.middlewares.middlewares.ThrottleHeadersMiddleware']
201201

0 commit comments

Comments
 (0)