mirror of
https://github.com/element-hq/synapse
synced 2024-09-19 22:15:11 +00:00
dd4be2453f
Fix for https://github.com/matrix-org/synapse/issues/13856 Fixed by calling `_invalidate_caches_for_event` when we persist an event. And an additional fix in `_invalidate_caches_for_event` to make sure it uses the correct cache key. This seems like it would be an easy foot-gun for any `tree=True` cache. Wrong: ```py self.have_seen_event.invalidate((room_id, event_id)) ``` Correct: ```py self.have_seen_event.invalidate(((room_id, event_id),)) ``` |
||
---|---|---|
.. | ||
__init__.py | ||
test_deviceinbox.py | ||
test_events_worker.py | ||
test_lock.py | ||
test_room.py |