From b6adfc59f522cfc897616c153f055d669da71a9a Mon Sep 17 00:00:00 2001 From: Mark Haines Date: Fri, 22 May 2015 13:00:50 +0100 Subject: [PATCH] Invalidate the get_latest_event_ids_in_room cache when deleting from event_forward_extremities --- synapse/storage/event_federation.py | 1 + 1 file changed, 1 insertion(+) diff --git a/synapse/storage/event_federation.py b/synapse/storage/event_federation.py index 5d4b7843f..23573e8b2 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)