mirror of
https://github.com/element-hq/synapse.git
synced 2024-11-22 09:35:45 +03:00
Make get_account_data_for_room_and_type
a tree cache (#11789)
This commit is contained in:
parent
bfe6d5553a
commit
e83520cc42
2 changed files with 2 additions and 1 deletions
1
changelog.d/11789.feature
Normal file
1
changelog.d/11789.feature
Normal file
|
@ -0,0 +1 @@
|
|||
Remove account data (including client config, push rules and ignored users) upon user deactivation.
|
|
@ -210,7 +210,7 @@ class AccountDataWorkerStore(CacheInvalidationWorkerStore):
|
|||
"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(
|
||||
self, user_id: str, room_id: str, account_data_type: str
|
||||
) -> Optional[JsonDict]:
|
||||
|
|
Loading…
Reference in a new issue