mirror of
https://github.com/element-hq/synapse.git
synced 2026-12-03 07:14:33 +00:00
The machinery to resize caches when the config was reloaded assumed that there was only one cache per cache-name. This isn't true if multiple homeservers are run in one process, e.g. during tests. We fix that, and make the references weakrefs. This is primarily to help reduce the amount of memory used when running the full test suite. A [future PR](https://github.com/element-hq/synapse/pull/20513) will make it so that we actually drop built homeserver objects after each test run.