diff --git a/synapse/storage/databases/main/events_worker.py b/synapse/storage/databases/main/events_worker.py index 21b48d15bb5f..40f806b0b051 100644 --- a/synapse/storage/databases/main/events_worker.py +++ b/synapse/storage/databases/main/events_worker.py @@ -249,7 +249,7 @@ def __init__( # TODO: temporary explicit disable of this cache due to thrashing requests # burning CPU. Possibly need to move this cache to where we get events from DB. if external_sharded_cache.is_enabled() and False: - self._get_event_cache = RedisLruCache( + self._get_event_cache = RedisLruCache( # type: ignore cache_name="*getEvent*", max_size=hs.config.caches.event_cache_size, redis_shard_cache=external_sharded_cache,