Clear the auth cache when testing the same url twice with different results

This commit is contained in:
Min RK
2018-11-12 14:35:47 +01:00
parent 3a0bacde3a
commit 7f1c91d8f4
2 changed files with 9 additions and 0 deletions

View File

@@ -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