mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-10 22:10:01 -04:00
Invalidate caches properly. Remove unused arg
This commit is contained in:
parent
19fd425928
commit
e1941442d4
4 changed files with 15 additions and 10 deletions
|
@ -128,9 +128,6 @@ class EventsStore(SQLBaseStore):
|
|||
is_new_state=is_new_state,
|
||||
current_state=current_state,
|
||||
)
|
||||
self._events_stream_cache.room_has_changed(
|
||||
None, event.room_id, stream_ordering
|
||||
)
|
||||
except _RollbackButIsFineException:
|
||||
pass
|
||||
|
||||
|
@ -213,6 +210,12 @@ class EventsStore(SQLBaseStore):
|
|||
for event, _ in events_and_contexts:
|
||||
txn.call_after(self._invalidate_get_event_cache, event.event_id)
|
||||
|
||||
if not backfilled:
|
||||
txn.call_after(
|
||||
self._events_stream_cache.room_has_changed,
|
||||
event.room_id, event.internal_metadata.stream_ordering,
|
||||
)
|
||||
|
||||
depth_updates = {}
|
||||
for event, _ in events_and_contexts:
|
||||
if event.internal_metadata.is_outlier():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue