Actually get "item" when a cached item expires
This commit is contained in:
parent
47ec11bbef
commit
fe981f9911
1 changed files with 1 additions and 0 deletions
|
@ -31,6 +31,7 @@ class Cache(object):
|
||||||
if expiration and expiration <= now:
|
if expiration and expiration <= now:
|
||||||
expired.append(id)
|
expired.append(id)
|
||||||
for id in expired:
|
for id in expired:
|
||||||
|
item = self._items[id]
|
||||||
del self._items[id]
|
del self._items[id]
|
||||||
del self._item_to_id[item]
|
del self._item_to_id[item]
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue