mirror of
https://mau.dev/maunium/synapse.git
synced 2024-10-01 01:36:05 -04:00
Invalidate get_last_receipt_event_id_for_user cache
This commit is contained in:
parent
7e3b586c1e
commit
70a8608749
@ -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 New Issue
Block a user