From ab86c6832a1e6d5060495dbffb4cbf474fef2ed4 Mon Sep 17 00:00:00 2001 From: Nick Mills-Barrett Date: Tue, 15 Aug 2023 11:38:22 +0100 Subject: [PATCH] Remove redis caching of `_get_user_ids_from_membership_event_ids` This cache is invalidated as part of event puring and this isn't supported by the Redis list cache wrapper. --- synapse/storage/_base.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/synapse/storage/_base.py b/synapse/storage/_base.py index 3c6d47e18ee9..8e73ae0a8932 100644 --- a/synapse/storage/_base.py +++ b/synapse/storage/_base.py @@ -206,9 +206,6 @@ def register_external_cached_function( def _enable_external_caches(self) -> None: external_cache = self.hs.get_external_sharded_cache() if external_cache.is_enabled(): - self._attempt_to_enable_redis_cache( - "_get_user_ids_from_membership_event_ids" - ) self._attempt_to_enable_redis_cache("get_users_in_room") self._attempt_to_enable_redis_cache("get_current_hosts_in_room") self._attempt_to_enable_redis_cache("get_local_users_in_room")