mirror of
https://github.com/django/django.git
synced 2024-11-30 15:10:46 +01:00
Fixed #6413 -- Fixed a deadlock situation in the locmem culling implementation.
Thanks, Joe Holloway. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8090 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
108b604b51
commit
66612ef529
2
django/core/cache/backends/locmem.py
vendored
2
django/core/cache/backends/locmem.py
vendored
@ -107,7 +107,7 @@ class CacheClass(BaseCache):
|
||||
else:
|
||||
doomed = [k for (i, k) in enumerate(self._cache) if i % self._cull_frequency == 0]
|
||||
for k in doomed:
|
||||
self.delete(k)
|
||||
self._delete(k)
|
||||
|
||||
def _delete(self, key):
|
||||
try:
|
||||
|
Loading…
Reference in New Issue
Block a user