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:
parent
6c3ae7cb4e
commit
c47d054c67
@ -100,7 +100,7 @@ def ws_add_site(message: Any) -> None:
|
|||||||
|
|
||||||
output.append(formatted_data)
|
output.append(formatted_data)
|
||||||
# Cache restricted data for user
|
# Cache restricted data for user
|
||||||
restricted_data_cache.update_element(
|
restricted_data_cache.add_element(
|
||||||
user_id,
|
user_id,
|
||||||
collection.collection_string,
|
collection.collection_string,
|
||||||
data['id'],
|
data['id'],
|
||||||
|
Loading…
Reference in New Issue
Block a user