summary refs log tree commit diff
path: root/synapse/storage/__init__.py
diff options
context:
space:
mode:
authorPaul "LeoNerd" Evans <paul@matrix.org>2015-03-20 15:44:06 +0000
committerPaul "LeoNerd" Evans <paul@matrix.org>2015-03-20 15:44:06 +0000
commitceb61daa70d30b56584bab61e17e68fd868d5264 (patch)
tree2709ec5c62e83aa3416c52f35d0a976358cf6dfc /synapse/storage/__init__.py
parentAllow @cached-wrapped functions to have more or fewer than 1 argument; assert... (diff)
downloadsynapse-ceb61daa70d30b56584bab61e17e68fd868d5264.tar.xz
Add the tiniest of tiny one-element caches to get_room_events_max_id() as it's read every time someone hits eventstream
Diffstat (limited to 'synapse/storage/__init__.py')
-rw-r--r--synapse/storage/__init__.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/synapse/storage/__init__.py b/synapse/storage/__init__.py
index 4b16f445d6..70cb8a3ae8 100644
--- a/synapse/storage/__init__.py
+++ b/synapse/storage/__init__.py
@@ -111,6 +111,7 @@ class DataStore(RoomMemberStore, RoomStore,
                 is_new_state=is_new_state,
                 current_state=current_state,
             )
+            self.get_room_events_max_id.invalidate()
         except _RollbackButIsFineException:
             pass