Only announce site on http request if not paused
This commit is contained in:
parent
8b91abd0dc
commit
da64785ea4
1 changed files with 1 additions and 1 deletions
|
@ -310,7 +310,7 @@ class UiRequest(object):
|
||||||
|
|
||||||
self.sendHeader(extra_headers=extra_headers)
|
self.sendHeader(extra_headers=extra_headers)
|
||||||
|
|
||||||
if time.time() - site.announcer.time_last_announce > 60 * 60:
|
if time.time() - site.announcer.time_last_announce > 60 * 60 and site.settings["serving"]:
|
||||||
site.log.debug("Site requested, but not announced recently. Updating...")
|
site.log.debug("Site requested, but not announced recently. Updating...")
|
||||||
gevent.spawn(site.update, announce=True)
|
gevent.spawn(site.update, announce=True)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue