Skip updating hashfiled of inactive sites

This commit is contained in:
shortcutme 2018-10-15 13:05:18 +02:00
parent 0deea7133d
commit 854fda4530
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE

View file

@ -235,6 +235,8 @@ class ContentDbPlugin(object):
for site in self.sites.values():
if not site.content_manager.has_optional_files:
continue
if not site.settings["serving"]:
continue
has_updated_hashfield = next((
peer
for peer in site.peers.itervalues()