mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-07 19:15:00 -04:00
Speed up fetching large numbers of push rules (#13592)
This commit is contained in:
parent
5e7847dc92
commit
aec87a0f93
4 changed files with 2 additions and 9 deletions
|
@ -31,6 +31,5 @@ class SlavedPushRuleStore(SlavedEventStore, PushRulesWorkerStore):
|
|||
self._push_rules_stream_id_gen.advance(instance_name, token)
|
||||
for row in rows:
|
||||
self.get_push_rules_for_user.invalidate((row.user_id,))
|
||||
self.get_push_rules_enabled_for_user.invalidate((row.user_id,))
|
||||
self.push_rules_stream_cache.entity_has_changed(row.user_id, token)
|
||||
return super().process_replication_rows(stream_name, instance_name, token, rows)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue