mirror of
https://mau.dev/maunium/synapse.git
synced 2024-12-15 06:43:50 +01:00
Invalidate get_last_receipt_event_id_for_user cache
This commit is contained in:
parent
7e3b586c1e
commit
70a8608749
1 changed files with 5 additions and 0 deletions
|
@ -240,6 +240,11 @@ class ReceiptsStore(SQLBaseStore):
|
||||||
room_id, stream_id
|
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
|
# We don't want to clobber receipts for more recent events, so we
|
||||||
# have to compare orderings of existing receipts
|
# have to compare orderings of existing receipts
|
||||||
sql = (
|
sql = (
|
||||||
|
|
Loading…
Reference in a new issue