summary refs log tree commit diff
diff options
context:
space:
mode:
authorMark Haines <mark.haines@matrix.org>2015-05-22 13:00:50 +0100
committerMark Haines <mark.haines@matrix.org>2015-05-22 13:01:03 +0100
commitb6adfc59f522cfc897616c153f055d669da71a9a (patch)
treecbf4950b73aab96ea049e7de0fe7e4b03fa4645b
parentRevert register_new_matrix_user to use v1 api (diff)
downloadsynapse-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.py1
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)