mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-07 10:04:07 +00:00
Clear the auth cache when testing the same url twice with different results
This commit is contained in:
@@ -99,6 +99,11 @@ class _ExpiringDict(dict):
|
||||
except KeyError:
|
||||
return default
|
||||
|
||||
def clear(self):
|
||||
"""Clear the cache"""
|
||||
self.values.clear()
|
||||
self.timestamps.clear()
|
||||
|
||||
|
||||
class HubAuth(SingletonConfigurable):
|
||||
"""A class for authenticating with JupyterHub
|
||||
|
Reference in New Issue
Block a user