From 796ba54f42d781ceec4cb8770f86e5c2420c597f Mon Sep 17 00:00:00 2001 From: Unrud Date: Thu, 27 Jul 2017 19:08:05 +0200 Subject: [PATCH] Clean item cache once per request --- radicale/storage.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/radicale/storage.py b/radicale/storage.py index a14aeea..7b09ab3 100644 --- a/radicale/storage.py +++ b/radicale/storage.py @@ -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