mirror of
https://github.com/aljazceru/CTFd.git
synced 2025-12-18 22:44:24 +01:00
* Consider account configs when user patches their own account * Add test for name changing * Add test to ensure that users changing emails are marked unconfirmed * Only allow users to change to emails in whitelisted domains * Simplify assertion for error check
21 lines
475 B
Python
21 lines
475 B
Python
from flask_caching import Cache
|
|
|
|
cache = Cache()
|
|
|
|
|
|
def clear_config():
|
|
from CTFd.utils import _get_config, get_app_config
|
|
cache.delete_memoized(_get_config)
|
|
cache.delete_memoized(get_app_config)
|
|
|
|
|
|
def clear_standings():
|
|
from CTFd.utils.scores import get_standings
|
|
cache.delete_memoized(get_standings)
|
|
|
|
|
|
def clear_pages():
|
|
from CTFd.utils.config.pages import get_page, get_pages
|
|
cache.delete_memoized(get_pages)
|
|
cache.delete_memoized(get_page)
|