connector

This commit is contained in:
4tochka 2019-05-02 19:39:52 +04:00
parent 4c5668595a
commit 11a1af4e27

View File

@ -957,7 +957,10 @@ class Cache():
self.clear_tail = True
if self.clear_tail:
if self._store_size >= int(self._max_size * 0.75):
[self._store.popitem(last=False) for i in range(20)]
try:
[self.pop_last() for i in range(20)]
except:
pass
else:
self.clear_tail = False