diff options
author | Erik Johnston <erik@matrix.org> | 2018-07-02 11:36:44 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2018-07-02 11:36:44 +0100 |
commit | 3905c693c5c256d2380cf8aa94cd24fe64ac974b (patch) | |
tree | 27012b725d08c480e25e0b1384c9aea56561a362 /synapse | |
parent | Merge pull request #3467 from matrix-org/hawkowl/contributor-requirements (diff) | |
download | synapse-3905c693c5c256d2380cf8aa94cd24fe64ac974b.tar.xz |
Invalidate cache on correct thread
Diffstat (limited to 'synapse')
-rw-r--r-- | synapse/storage/events.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/synapse/storage/events.py b/synapse/storage/events.py index d816d4883c..a54abb9edd 100644 --- a/synapse/storage/events.py +++ b/synapse/storage/events.py @@ -801,7 +801,8 @@ class EventsStore(EventsWorkerStore): ] ) - self._curr_state_delta_stream_cache.entity_has_changed( + txn.call_after( + self._curr_state_delta_stream_cache.entity_has_changed, room_id, max_stream_order, ) |