mirror of
https://github.com/aljazceru/CTFd.git
synced 2026-02-20 21:54:25 +01:00
Only need to clear cache once in admin_plugin_config() (#324)
This commit is contained in:
committed by
Kevin Chung
parent
1ed0f4a32d
commit
62eb1b836c
@@ -49,8 +49,8 @@ def admin_plugin_config(plugin):
|
||||
if k == "nonce":
|
||||
continue
|
||||
utils.set_config(k, v)
|
||||
with app.app_context():
|
||||
cache.clear()
|
||||
with app.app_context():
|
||||
cache.clear()
|
||||
return '1'
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user