-
- Downloads
Don't invalidate the entire event cache when we purge history (#16905)
We do this by adding support to the LRU cache for "extra indices" based on the cached value. This allows us to efficiently map from room ID to the cached events and only invalidate those.
Showing
- changelog.d/16905.misc 1 addition, 0 deletionschangelog.d/16905.misc
- synapse/storage/databases/main/cache.py 1 addition, 1 deletionsynapse/storage/databases/main/cache.py
- synapse/storage/databases/main/events_worker.py 8 additions, 6 deletionssynapse/storage/databases/main/events_worker.py
- synapse/util/caches/lrucache.py 59 additions, 0 deletionssynapse/util/caches/lrucache.py
- tests/util/test_lrucache.py 31 additions, 0 deletionstests/util/test_lrucache.py
Loading
Please register or sign in to comment