summary refs log tree commit diff
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2021-05-04 13:27:28 +0100
committerErik Johnston <erik@matrix.org>2021-05-04 13:27:28 +0100
commit8624333cd9ae31333d87802c40ab2d7c3edae320 (patch)
treec8c5f35754d5c680a3f5f114610a7fc9b4828dd5
parentConvert other uses of get_current_users_in_room and add warning (diff)
downloadsynapse-8624333cd9ae31333d87802c40ab2d7c3edae320.tar.xz
Correctly invalidate get_users_in_room_with_profiles cache
-rw-r--r--synapse/storage/_base.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/synapse/storage/_base.py b/synapse/storage/_base.py

index 6b68d8720c..3d98d3f5f8 100644 --- a/synapse/storage/_base.py +++ b/synapse/storage/_base.py
@@ -69,6 +69,7 @@ class SQLBaseStore(metaclass=ABCMeta): self._attempt_to_invalidate_cache("is_host_joined", (room_id, host)) self._attempt_to_invalidate_cache("get_users_in_room", (room_id,)) + self._attempt_to_invalidate_cache("get_users_in_room_with_profiles", (room_id,)) self._attempt_to_invalidate_cache("get_room_summary", (room_id,)) self._attempt_to_invalidate_cache("get_current_state_ids", (room_id,))