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

Commit 64b476a

Browse files
committed
Disable Redis get event cache
1 parent 1057910 commit 64b476a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

synapse/storage/databases/main/events_worker.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,9 @@ def __init__(
246246
]
247247

248248
external_sharded_cache = hs.get_external_sharded_cache()
249-
if external_sharded_cache.is_enabled():
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:
250252
self._get_event_cache = RedisLruCache(
251253
cache_name="*getEvent*",
252254
max_size=hs.config.caches.event_cache_size,

0 commit comments

Comments
 (0)