Closed Bug 1312464 Opened 8 years ago Closed 8 years ago

Upgrade to django-ratelimit 1.0.1

Categories

(Socorro :: Webapp, task)

task
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: peterbe, Assigned: peterbe)

References

Details

Attachments

(1 file)

We currently use 0.6.0.

One important change is that the current django-ratelimit we use uses
`cache.set(key, 1, time); cache.incr(key)` but if memcache has disappeared or something (which isn't unrealistic when distributed webheads and non-local memcacheds) you get a ValueError. 

In upgraded django-ratelimit it does::

 cache.set(key, 1, time)
 ...
 try:
    cache.incr(key)
 except ValueError:
    cache.set(key, 1, time)
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: