mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 12:26:02 -04:00
Invalidate the cache when an olm fallback key is uploaded (#8501)
This commit is contained in:
parent
7859c4d079
commit
a97cec18bb
3 changed files with 25 additions and 0 deletions
|
@ -398,6 +398,10 @@ class EndToEndKeyWorkerStore(SQLBaseStore):
|
|||
desc="set_e2e_fallback_key",
|
||||
)
|
||||
|
||||
await self.invalidate_cache_and_stream(
|
||||
"get_e2e_unused_fallback_key_types", (user_id, device_id)
|
||||
)
|
||||
|
||||
@cached(max_entries=10000)
|
||||
async def get_e2e_unused_fallback_key_types(
|
||||
self, user_id: str, device_id: str
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue