304
305
if len(timestamps) < maxnum * 2:
305
306
timestamps.append((now + self.cfg.surge_lockout_time, surge_indicator)) # continue like that and get locked out
308
if current_action not in ('cache', 'AttachFile', ): # don't add cache/AttachFile accesses to all or picture galleries will trigger SP
308
309
current_action = 'all' # put a total limit on user's requests
309
310
maxnum, dt = limits.get(current_action, default_limit)
310
311
events = surgedict.setdefault(current_id, {})