mirror of
https://github.com/element-hq/synapse.git
synced 2024-11-22 17:46:08 +03:00
0a363f9ca4
This PR remove the cache for the `get_shared_rooms_for_users` storage method (the db method driving the experimental "what rooms do I share with this user?" feature: [MSC2666](https://github.com/matrix-org/matrix-doc/pull/2666)). Currently subsequent requests to the endpoint will return the same result, even if your shared rooms with that user have changed. The cache was added in https://github.com/matrix-org/synapse/pull/7785, but we forgot to ensure it was invalidated appropriately. Upon attempting to invalidate it, I found that the cache had to be entirely invalidated whenever a user (remote or local) joined or left a room. This didn't make for a very useful cache, especially for a function that may or may not be called very often. Thus, I've opted to remove it instead of invalidating it. |
||
---|---|---|
.. | ||
v1 | ||
v2_alpha | ||
__init__.py | ||
test_consent.py | ||
test_ephemeral_message.py | ||
test_identity.py | ||
test_power_levels.py | ||
test_redactions.py | ||
test_retention.py | ||
test_shadow_banned.py | ||
test_third_party_rules.py | ||
test_transactions.py |