summary refs log tree commit diff
path: root/synapse/storage/events.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2016-01-29 13:04:51 +0000
committerErik Johnston <erik@matrix.org>2016-01-29 13:04:51 +0000
commitb18114e19e184233ab825eafd93f17ed559b6270 (patch)
tree7b7bb120a570fd648db68b76ccb0bfacbfdd357e /synapse/storage/events.py
parentMerge pull request #538 from matrix-org/erikj/fix_lru_cache (diff)
parentAmalgamate tags and account data stream caches (diff)
downloadsynapse-b18114e19e184233ab825eafd93f17ed559b6270.tar.xz
Merge pull request #536 from matrix-org/erikj/sync
Make /sync "better".
Diffstat (limited to 'synapse/storage/events.py')
-rw-r--r--synapse/storage/events.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/synapse/storage/events.py b/synapse/storage/events.py
index 298cb9bada..5e85552029 100644
--- a/synapse/storage/events.py
+++ b/synapse/storage/events.py
@@ -210,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.entity_has_changed,
+                    event.room_id, event.internal_metadata.stream_ordering,
+                )
+
         depth_updates = {}
         for event, _ in events_and_contexts:
             if event.internal_metadata.is_outlier():