diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2022-03-07 09:00:05 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-07 14:00:05 +0000 |
commit | f63bedef07360216a8de71dc38f00f1aea503903 (patch) | |
tree | 65bfb274f4890385151df3073e72b7057c82a950 /synapse/storage/databases/main/cache.py | |
parent | Switch the `tests-done` job to an Action (#12161) (diff) | |
download | synapse-f63bedef07360216a8de71dc38f00f1aea503903.tar.xz |
Invalidate caches when an event with a relation is redacted. (#12121)
The caches for the target of the relation must be cleared so that the bundled aggregations are re-calculated after the redaction is processed.
Diffstat (limited to 'synapse/storage/databases/main/cache.py')
-rw-r--r-- | synapse/storage/databases/main/cache.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/synapse/storage/databases/main/cache.py b/synapse/storage/databases/main/cache.py index c428dd5596..abd54c7dc7 100644 --- a/synapse/storage/databases/main/cache.py +++ b/synapse/storage/databases/main/cache.py @@ -200,6 +200,8 @@ class CacheInvalidationWorkerStore(SQLBaseStore): self.get_relations_for_event.invalidate((relates_to,)) self.get_aggregation_groups_for_event.invalidate((relates_to,)) self.get_applicable_edit.invalidate((relates_to,)) + self.get_thread_summary.invalidate((relates_to,)) + self.get_thread_participated.invalidate((relates_to,)) async def invalidate_cache_and_stream(self, cache_name: str, keys: Tuple[Any, ...]): """Invalidates the cache and adds it to the cache stream so slaves |