summary refs log tree commit diff
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2016-02-09 14:27:29 +0000
committerErik Johnston <erik@matrix.org>2016-02-09 14:27:29 +0000
commit70a8608749e0c1ec7a993a9effc424303af24738 (patch)
treed1dc8952fe024ef0dbda7bac790dab3326a3f24a
parentMerge pull request #567 from matrix-org/erikj/sync_ephemeral (diff)
downloadsynapse-70a8608749e0c1ec7a993a9effc424303af24738.tar.xz
Invalidate get_last_receipt_event_id_for_user cache
Diffstat (limited to '')
-rw-r--r--synapse/storage/receipts.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/synapse/storage/receipts.py b/synapse/storage/receipts.py
index 1aff9f070e..4202a6b3dc 100644
--- a/synapse/storage/receipts.py
+++ b/synapse/storage/receipts.py
@@ -240,6 +240,11 @@ class ReceiptsStore(SQLBaseStore):
             room_id, stream_id
         )
 
+        txn.call_after(
+            self.get_last_receipt_event_id_for_user.invalidate,
+            (user_id, room_id, receipt_type)
+        )
+
         # We don't want to clobber receipts for more recent events, so we
         # have to compare orderings of existing receipts
         sql = (