Sliding Sync: Add cache to `get_tags_for_room(...)` (#17730)
Add cache to `get_tags_for_room(...)` This helps Sliding Sync because `get_tags_for_room(...)` is going to be used in https://github.com/element-hq/synapse/pull/17695 Essentially, we're just trying to match `get_account_data_for_room(...)` which already has a tree cache.
Showing
- changelog.d/17730.misc 1 addition, 0 deletionschangelog.d/17730.misc
- synapse/handlers/account_data.py 2 additions, 2 deletionssynapse/handlers/account_data.py
- synapse/storage/databases/main/cache.py 1 addition, 0 deletionssynapse/storage/databases/main/cache.py
- synapse/storage/databases/main/tags.py 16 additions, 3 deletionssynapse/storage/databases/main/tags.py
- tests/server_notices/test_resource_limits_server_notices.py 1 addition, 1 deletiontests/server_notices/test_resource_limits_server_notices.py
Loading
Please register or sign in to comment