Skip to content

Commit

Permalink
Limit events removed from the event caching to only those from a give…
Browse files Browse the repository at this point in the history
…n room
  • Loading branch information
realtyem committed Sep 25, 2023
1 parent 8fc6611 commit a114fd3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions synapse/storage/databases/main/cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -357,8 +357,7 @@ def _invalidate_caches_for_room_events(self, room_id: str) -> None:
Used when we delete events in a room, but don't know which events we've
deleted.
"""

self._invalidate_local_get_event_cache_all() # type: ignore[attr-defined]
self.invalidate_room_from_event_metadata(room_id) # type: ignore[attr-defined]

self._attempt_to_invalidate_cache("have_seen_event", (room_id,))
self._attempt_to_invalidate_cache("get_latest_event_ids_in_room", (room_id,))
Expand Down

0 comments on commit a114fd3

Please sign in to comment.