Clean item cache once per request
This commit is contained in:
parent
0a1de26ae5
commit
796ba54f42
@ -733,6 +733,7 @@ class Collection(BaseCollection):
|
||||
"VObject version not found: %s", e, exc_info=True)
|
||||
vobject_version = ""
|
||||
Collection._item_cache_tag = vobject_version.encode() + b"\0"
|
||||
self._item_cache_cleaned = False
|
||||
|
||||
@classmethod
|
||||
def _get_collection_root_folder(cls):
|
||||
@ -1173,8 +1174,6 @@ class Collection(BaseCollection):
|
||||
continue
|
||||
yield href
|
||||
|
||||
_item_cache_cleaned = False
|
||||
|
||||
def get(self, href, verify_href=True):
|
||||
item, metadata = self._get_with_metadata(href, verify_href=verify_href)
|
||||
return item
|
||||
|
Loading…
Reference in New Issue
Block a user