diff options
author | Mark Haines <mark.haines@matrix.org> | 2015-05-22 13:00:50 +0100 |
---|---|---|
committer | Mark Haines <mark.haines@matrix.org> | 2015-05-22 13:01:03 +0100 |
commit | b6adfc59f522cfc897616c153f055d669da71a9a (patch) | |
tree | cbf4950b73aab96ea049e7de0fe7e4b03fa4645b | |
parent | Revert register_new_matrix_user to use v1 api (diff) | |
download | synapse-b6adfc59f522cfc897616c153f055d669da71a9a.tar.xz |
Invalidate the get_latest_event_ids_in_room cache when deleting from event_forward_extremities
-rw-r--r-- | synapse/storage/event_federation.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/synapse/storage/event_federation.py b/synapse/storage/event_federation.py index 5d4b7843f3..23573e8b2b 100644 --- a/synapse/storage/event_federation.py +++ b/synapse/storage/event_federation.py @@ -472,3 +472,4 @@ class EventFederationStore(SQLBaseStore): query = "DELETE FROM event_forward_extremities WHERE room_id = ?" txn.execute(query, (room_id,)) + txn.call_after(self.get_latest_event_ids_in_room.invalidate, room_id) |