summary refs log tree commit diff
path: root/synapse/storage
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2016-01-29 16:54:34 +0000
committerErik Johnston <erik@matrix.org>2016-01-29 16:54:34 +0000
commit226a9a5fa6afac1a5d16599a6bd2744805a37c28 (patch)
tree06a9bbb7fdc3f05c62115101b915b69d876ab0b8 /synapse/storage
parentMerge pull request #540 from matrix-org/erikj/sync (diff)
parentInvalidate _account_data_stream_cache correctly (diff)
downloadsynapse-226a9a5fa6afac1a5d16599a6bd2744805a37c28.tar.xz
Merge pull request #542 from matrix-org/erikj/cache_fix
Cache fixes
Diffstat (limited to 'synapse/storage')
-rw-r--r--synapse/storage/account_data.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/synapse/storage/account_data.py b/synapse/storage/account_data.py
index 625d062eb1..b8387fc500 100644
--- a/synapse/storage/account_data.py
+++ b/synapse/storage/account_data.py
@@ -157,6 +157,10 @@ class AccountDataStore(SQLBaseStore):
                     "content": content_json,
                 }
             )
+            txn.call_after(
+                self._account_data_stream_cache.entity_has_changed,
+                user_id, next_id,
+            )
             self._update_max_stream_id(txn, next_id)
 
         with (yield self._account_data_id_gen.get_next(self)) as next_id: