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.
This commit is contained in:
Oskar Hahn 2018-02-24 16:52:48 +01:00
parent 6c3ae7cb4e
commit c47d054c67

View File

@ -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'],