Skip to content
Snippets Groups Projects
Unverified Commit e83520cc authored by reivilibre's avatar reivilibre Committed by GitHub
Browse files

Make `get_account_data_for_room_and_type` a tree cache (#11789)

parent bfe6d555
No related branches found
No related tags found
No related merge requests found
Remove account data (including client config, push rules and ignored users) upon user deactivation.
\ No newline at end of file
...@@ -210,7 +210,7 @@ class AccountDataWorkerStore(CacheInvalidationWorkerStore): ...@@ -210,7 +210,7 @@ class AccountDataWorkerStore(CacheInvalidationWorkerStore):
"get_account_data_for_room", get_account_data_for_room_txn "get_account_data_for_room", get_account_data_for_room_txn
) )
@cached(num_args=3, max_entries=5000) @cached(num_args=3, max_entries=5000, tree=True)
async def get_account_data_for_room_and_type( async def get_account_data_for_room_and_type(
self, user_id: str, room_id: str, account_data_type: str self, user_id: str, room_id: str, account_data_type: str
) -> Optional[JsonDict]: ) -> Optional[JsonDict]:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment