Invalidate get_last_receipt_event_id_for_user cache

This commit is contained in:
Erik Johnston 2016-02-09 14:27:29 +00:00
parent 7e3b586c1e
commit 70a8608749

View file

@ -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 = (