Skip to content
This repository was archived by the owner on Mar 26, 2024. It is now read-only.

Commit 53f644b

Browse files
committed
Revert "Disable Redis get event cache"
This reverts commit 64b476a.
1 parent 9a04f94 commit 53f644b

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

synapse/storage/databases/main/events_worker.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -246,10 +246,8 @@ def __init__(
246246
]
247247

248248
external_sharded_cache = hs.get_external_sharded_cache()
249-
# TODO: temporary explicit disable of this cache due to thrashing requests
250-
# burning CPU. Possibly need to move this cache to where we get events from DB.
251-
if external_sharded_cache.is_enabled() and False:
252-
self._get_event_cache = RedisLruCache( # type: ignore
249+
if external_sharded_cache.is_enabled():
250+
self._get_event_cache = RedisLruCache(
253251
cache_name="*getEvent*",
254252
max_size=hs.config.caches.event_cache_size,
255253
redis_shard_cache=external_sharded_cache,

0 commit comments

Comments
 (0)