mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-17 23:13:00 +00:00
Delay instantiation of User and Spawner objects
Avoids instantiating too many objects before they are used - deletes Spawner instances after they stop to avoid lingering instances - use user_dict cache more often instead of db queries - check for empty spawners dict to avoid a few Spawner instantiations
This commit is contained in:
@@ -258,7 +258,6 @@ class BaseHandler(RequestHandler):
|
||||
self.db.add(u)
|
||||
self.db.commit()
|
||||
user = self._user_from_orm(u)
|
||||
self.authenticator.add_user(user)
|
||||
return user
|
||||
|
||||
def clear_login_cookie(self, name=None):
|
||||
|
Reference in New Issue
Block a user