mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2025-10-02 03:28:27 -04:00
Merge pull request #2927 from matrix-org/erikj/read_marker_caches
Improve caching for read_marker API
This commit is contained in:
commit
9e08a93a7b
4 changed files with 46 additions and 5 deletions
|
@ -56,6 +56,10 @@ class SlavedAccountDataStore(TagsWorkerStore, AccountDataWorkerStore, BaseSlaved
|
|||
(row.data_type, row.user_id,)
|
||||
)
|
||||
self.get_account_data_for_user.invalidate((row.user_id,))
|
||||
self.get_account_data_for_room.invalidate((row.user_id, row.room_id,))
|
||||
self.get_account_data_for_room_and_type.invalidate(
|
||||
(row.user_id, row.room_id, row.account_data_type,),
|
||||
)
|
||||
self._account_data_stream_cache.entity_has_changed(
|
||||
row.user_id, token
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue