From 030888bbfb7a8b86b06910a79be719ae2a0a9fed Mon Sep 17 00:00:00 2001 From: Nick Barrett Date: Tue, 2 Aug 2022 14:57:49 +0100 Subject: [PATCH] Only check local event cache for roommember lookup optimisation --- synapse/storage/databases/main/roommember.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/synapse/storage/databases/main/roommember.py b/synapse/storage/databases/main/roommember.py index e2cccc688c9f..93ff4816c804 100644 --- a/synapse/storage/databases/main/roommember.py +++ b/synapse/storage/databases/main/roommember.py @@ -896,7 +896,7 @@ async def _get_joined_users_from_context( # We don't update the event cache hit ratio as it completely throws off # the hit ratio counts. After all, we don't populate the cache if we # miss it here - event_map = await self._get_events_from_cache( + event_map = self._get_events_from_local_cache( member_event_ids, update_metrics=False )