summary refs log tree commit diff
path: root/synapse/storage/events.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2016-01-27 09:54:30 +0000
committerErik Johnston <erik@matrix.org>2016-01-27 17:33:26 +0000
commitb97f6626b6f9b91498d06a7ae113b9d20f1fc2ef (patch)
treed086f8f64c7b116e10ba5f819e5046484a73061e /synapse/storage/events.py
parentDon't turn on profiling (diff)
downloadsynapse-b97f6626b6f9b91498d06a7ae113b9d20f1fc2ef.tar.xz
Add cache to room stream
Diffstat (limited to 'synapse/storage/events.py')
-rw-r--r--synapse/storage/events.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/synapse/storage/events.py b/synapse/storage/events.py
index 298cb9bada..d96ea3a30e 100644
--- a/synapse/storage/events.py
+++ b/synapse/storage/events.py
@@ -128,6 +128,8 @@ class EventsStore(SQLBaseStore):
                     is_new_state=is_new_state,
                     current_state=current_state,
                 )
+                logger.info("Invalidating %r at %r", event.room_id, stream_ordering)
+                self._events_stream_cache.room_has_changed(None, event.room_id, stream_ordering)
         except _RollbackButIsFineException:
             pass