mirror of
https://github.com/zulip/zulip.git
synced 2025-11-10 17:07:07 +00:00
models: Disable caching of supported_auth_backends for now.
This seems to be causing hard-to-debug test failures.
This commit is contained in:
@@ -141,8 +141,9 @@ def get_active_realm_emoji_cache_key(realm: 'Realm') -> str:
|
|||||||
supported_backends = None # type: Optional[Set[type]]
|
supported_backends = None # type: Optional[Set[type]]
|
||||||
def supported_auth_backends() -> Set[type]:
|
def supported_auth_backends() -> Set[type]:
|
||||||
global supported_backends
|
global supported_backends
|
||||||
if supported_backends is None:
|
# Caching temporarily disabled for debugging
|
||||||
supported_backends = django.contrib.auth.get_backends()
|
supported_backends = django.contrib.auth.get_backends()
|
||||||
|
assert supported_backends is not None
|
||||||
return supported_backends
|
return supported_backends
|
||||||
|
|
||||||
def clear_supported_auth_backends_cache() -> None:
|
def clear_supported_auth_backends_cache() -> None:
|
||||||
|
|||||||
Reference in New Issue
Block a user