#31253 closed Bug (fixed)
Possible data loss when using caching from async code.
Description ¶
CacheHandler
use threading.local
instead of asgiref.local.Local
, hence it's a chance of data corruption if someone tries to use caching from async code. There is a potential race condition if two coroutines touch the same cache object at exactly the same time.
Change History (4)
comment:1 by , 5 years ago
comment:2 by , 5 years ago
Needs documentation: | unset |
---|---|
Needs tests: | unset |
Triage Stage: | Accepted → Ready for checkin |
Note:
See TracTickets
for help on using tickets.
PR