mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-06-14 08:39:12 -04:00
Make the cache objects be per instance rather than being global
This commit is contained in:
parent
2e308a3a38
commit
87f2dec8d4
4 changed files with 29 additions and 26 deletions
|
@ -319,7 +319,7 @@ class RegistrationStore(SQLBaseStore):
|
|||
|
||||
defer.returnValue(res if res else False)
|
||||
|
||||
@cachedList(cache=is_guest.cache, list_name="user_ids", num_args=1,
|
||||
@cachedList(cached_method_name="is_guest", list_name="user_ids", num_args=1,
|
||||
inlineCallbacks=True)
|
||||
def are_guests(self, user_ids):
|
||||
sql = "SELECT name, is_guest FROM users WHERE name IN (%s)" % (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue