summary refs log tree commit diff
path: root/INSTALL.md
diff options
context:
space:
mode:
authorEric Eastwood <erice@element.io>2022-09-21 18:02:45 -0500
committerEric Eastwood <erice@element.io>2022-09-21 18:03:57 -0500
commita847a35921519abc17c98a831266236a86d566f8 (patch)
tree252eb378d47227047239e511191a64efc5d29d65 /INSTALL.md
parentLast batch of Pydantic for synapse/rest/client/account.py (#13832) (diff)
downloadsynapse-a847a35921519abc17c98a831266236a86d566f8.tar.xz
Fix `have_seen_event` cache not being invalidated
Fix https://github.com/matrix-org/synapse/issues/13856

`_invalidate_caches_for_event` doesn't run in monolith mode which
means we never even tried to clear the `have_seen_event` and other
caches. And even in worker mode, it only runs on the workers, not
the master (AFAICT).

Additionally there is bug with the key being wrong so
`_invalidate_caches_for_event` never invalidates the
`have_seen_event` cache even when it does run.

Wrong:
```py
self.have_seen_event.invalidate((room_id, event_id))
```

Correct:
```py
self.have_seen_event.invalidate(((room_id, event_id),))
```
Diffstat (limited to 'INSTALL.md')
0 files changed, 0 insertions, 0 deletions