mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2024-11-09 15:10:27 +00:00
Enable bg updates
This commit is contained in:
parent
2958ae663c
commit
734a6d5b32
@ -459,7 +459,12 @@ def saml_logout():
|
|||||||
@app.route('/dashboard', methods=['GET', 'POST'])
|
@app.route('/dashboard', methods=['GET', 'POST'])
|
||||||
@login_required
|
@login_required
|
||||||
def dashboard():
|
def dashboard():
|
||||||
d = Domain().update()
|
if not app.config.get('BG_DOMAIN_UPDATES'):
|
||||||
|
logging.debug('Update domains in foreground')
|
||||||
|
d = Domain().update()
|
||||||
|
else:
|
||||||
|
logging.debug('Update domains in background')
|
||||||
|
|
||||||
|
|
||||||
# stats for dashboard
|
# stats for dashboard
|
||||||
domain_count = Domain.query.count()
|
domain_count = Domain.query.count()
|
||||||
|
@ -130,3 +130,6 @@ DNSSEC_ADMINS_ONLY = False
|
|||||||
|
|
||||||
# EXPERIMENTAL FEATURES
|
# EXPERIMENTAL FEATURES
|
||||||
PRETTY_IPV6_PTR = False
|
PRETTY_IPV6_PTR = False
|
||||||
|
|
||||||
|
# Domain updates in background, for big installations
|
||||||
|
BG_DOMAIN_UPDATES = False
|
||||||
|
Loading…
Reference in New Issue
Block a user