diff options
author | Erik Johnston <erikj@jki.re> | 2017-03-24 13:57:45 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-24 13:57:45 +0000 |
commit | 281553afe6a46e438679b503d93f67fe8f2e259e (patch) | |
tree | 7b9f36c0eef99ad88f011833ba4d4ebd5bb7529b /synapse/replication | |
parent | Merge pull request #2061 from matrix-org/erikj/add_transaction_store (diff) | |
parent | Actually call invalidate (diff) | |
download | synapse-281553afe6a46e438679b503d93f67fe8f2e259e.tar.xz |
Merge pull request #2062 from matrix-org/erikj/presence_replication
Use presence replication stream to invalidate cache
Diffstat (limited to 'synapse/replication')
-rw-r--r-- | synapse/replication/slave/storage/presence.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/synapse/replication/slave/storage/presence.py b/synapse/replication/slave/storage/presence.py index 40f6c9a386..e4a2414d78 100644 --- a/synapse/replication/slave/storage/presence.py +++ b/synapse/replication/slave/storage/presence.py @@ -57,5 +57,6 @@ class SlavedPresenceStore(BaseSlavedStore): self.presence_stream_cache.entity_has_changed( user_id, position ) + self._get_presence_for_user.invalidate((user_id,)) return super(SlavedPresenceStore, self).process_replication(result) |