summary refs log tree commit diff
path: root/synapse/storage/events.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2016-03-23 13:19:12 +0000
committerErik Johnston <erik@matrix.org>2016-03-23 13:19:12 +0000
commite14baa7a3b3465968c4264c60c01144b0f8e6483 (patch)
tree892bc900bbcf7097d87e956ebb321ae4b2af6fa6 /synapse/storage/events.py
parentMerge pull request #662 from matrix-org/erikj/state_cache (diff)
parentDon't cache events in get_recent_events_for_room (diff)
downloadsynapse-e14baa7a3b3465968c4264c60c01144b0f8e6483.tar.xz
Merge pull request #665 from matrix-org/erikj/dont_cache_events
Only cache events in the event cache
Diffstat (limited to 'synapse/storage/events.py')
-rw-r--r--synapse/storage/events.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/storage/events.py b/synapse/storage/events.py
index 584e659d4a..5233430028 100644
--- a/synapse/storage/events.py
+++ b/synapse/storage/events.py
@@ -182,7 +182,7 @@ class EventsStore(SQLBaseStore):
         # We purposefully do this first since if we include a `current_state`
         # key, we *want* to update the `current_state_events` table
         if current_state:
-            txn.call_after(self.get_current_state_for_key.invalidate_all)
+            txn.call_after(self._get_current_state_for_key.invalidate_all)
             txn.call_after(self.get_rooms_for_user.invalidate_all)
             txn.call_after(self.get_users_in_room.invalidate, (event.room_id,))
             txn.call_after(self.get_joined_hosts_for_room.invalidate, (event.room_id,))
@@ -466,7 +466,7 @@ class EventsStore(SQLBaseStore):
             for event, _ in state_events_and_contexts:
                 if not context.rejected:
                     txn.call_after(
-                        self.get_current_state_for_key.invalidate,
+                        self._get_current_state_for_key.invalidate,
                         (event.room_id, event.type, event.state_key,)
                     )