mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-12-24 07:49:25 -05:00
Make get_account_data_for_room_and_type
a tree cache (#11789)
This commit is contained in:
parent
bfe6d5553a
commit
e83520cc42
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
|
"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]:
|
||||||
|
Loading…
Reference in New Issue
Block a user