diff options
author | Erik Johnston <erik@matrix.org> | 2016-01-29 16:52:48 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2016-01-29 16:52:48 +0000 |
commit | 25c311eaf603cef8cbf9e6501aad83d53c304ebb (patch) | |
tree | ba17da62684427cc683c9ef6bb2bf5220d942239 /synapse/storage/__init__.py | |
parent | Invalidate _account_data_stream_cache correctly (diff) | |
download | synapse-25c311eaf603cef8cbf9e6501aad83d53c304ebb.tar.xz |
Cache get_room_changes_for_user
Diffstat (limited to 'synapse/storage/__init__.py')
-rw-r--r-- | synapse/storage/__init__.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/synapse/storage/__init__.py b/synapse/storage/__init__.py index ee2153737d..c91c7a3729 100644 --- a/synapse/storage/__init__.py +++ b/synapse/storage/__init__.py @@ -131,6 +131,10 @@ class DataStore(RoomMemberStore, RoomStore, prefilled_cache=event_cache_prefill, ) + self._membership_stream_cache = StreamChangeCache( + "MembershipStreamChangeCache", events_max, + ) + account_max = self._account_data_id_gen.get_max_token(None) self._account_data_stream_cache = StreamChangeCache( "AccountDataAndTagsChangeCache", account_max, |