From c47d054c6753c10ed421e6de1524e7b8ea00567e Mon Sep 17 00:00:00 2001 From: Oskar Hahn Date: Sat, 24 Feb 2018 16:52:48 +0100 Subject: [PATCH] Activate the restricted_data_cache again. restricted_data_cache.update_element(...) only adds an element to the cache, when there are already other elements in the cache. So then add_element is never used, the cache is never created. --- openslides/utils/autoupdate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openslides/utils/autoupdate.py b/openslides/utils/autoupdate.py index b433adaa6..06aaa8b7a 100644 --- a/openslides/utils/autoupdate.py +++ b/openslides/utils/autoupdate.py @@ -100,7 +100,7 @@ def ws_add_site(message: Any) -> None: output.append(formatted_data) # Cache restricted data for user - restricted_data_cache.update_element( + restricted_data_cache.add_element( user_id, collection.collection_string, data['id'],