diff options
author | Erik Johnston <erik@matrix.org> | 2016-05-09 13:05:09 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2016-05-09 13:05:09 +0100 |
commit | def64d6ef32ea1b2acc92e470db307e97c6eac05 (patch) | |
tree | 8d29d7d432a5b703d15f1176ae7e720b1caa5805 /synapse/storage/registration.py | |
parent | Add bulk fetch storage API (diff) | |
parent | Merge pull request #764 from matrix-org/erikj/replication_logging (diff) | |
download | synapse-def64d6ef32ea1b2acc92e470db307e97c6eac05.tar.xz |
Merge branch 'develop' of github.com:matrix-org/synapse into erikj/ignore_user
Diffstat (limited to 'synapse/storage/registration.py')
-rw-r--r-- | synapse/storage/registration.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/synapse/storage/registration.py b/synapse/storage/registration.py index 7af0cae6a5..bda84a744a 100644 --- a/synapse/storage/registration.py +++ b/synapse/storage/registration.py @@ -101,6 +101,7 @@ class RegistrationStore(SQLBaseStore): make_guest, appservice_id ) + self.get_user_by_id.invalidate((user_id,)) self.is_guest.invalidate((user_id,)) def _register( @@ -156,6 +157,7 @@ class RegistrationStore(SQLBaseStore): (next_id, user_id, token,) ) + @cached() def get_user_by_id(self, user_id): return self._simple_select_one( table="users", @@ -193,6 +195,7 @@ class RegistrationStore(SQLBaseStore): }, { 'password_hash': password_hash }) + self.get_user_by_id.invalidate((user_id,)) @defer.inlineCallbacks def user_delete_access_tokens(self, user_id, except_token_ids=[]): |