summary refs log tree commit diff
path: root/synapse/replication
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2022-08-23 13:15:43 +0100
committerGitHub <noreply@github.com>2022-08-23 13:15:43 +0100
commitaec87a0f9369a3015b2a53469f88d1de274e8b71 (patch)
treef6c7972c1bebfd41d368e8936131136b8b186ca6 /synapse/replication
parentCache user IDs instead of profile objects (#13573) (diff)
downloadsynapse-aec87a0f9369a3015b2a53469f88d1de274e8b71.tar.xz
Speed up fetching large numbers of push rules (#13592)
Diffstat (limited to 'synapse/replication')
-rw-r--r--synapse/replication/slave/storage/push_rule.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/synapse/replication/slave/storage/push_rule.py b/synapse/replication/slave/storage/push_rule.py
index 52ee3f7e58..5e65eaf1e0 100644
--- a/synapse/replication/slave/storage/push_rule.py
+++ b/synapse/replication/slave/storage/push_rule.py
@@ -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)