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/storage | |
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 '')
-rw-r--r-- | synapse/storage/presence.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/storage/presence.py b/synapse/storage/presence.py index 4d1590d2b4..9e9d3c2591 100644 --- a/synapse/storage/presence.py +++ b/synapse/storage/presence.py @@ -85,8 +85,8 @@ class PresenceStore(SQLBaseStore): self.presence_stream_cache.entity_has_changed, state.user_id, stream_id, ) - self._invalidate_cache_and_stream( - txn, self._get_presence_for_user, (state.user_id,) + txn.call_after( + self._get_presence_for_user.invalidate, (state.user_id,) ) # Actually insert new rows |