Save CPU by avoid reloading all json file on publish
This commit is contained in:
parent
9a58b6fbe6
commit
52044a50a1
1 changed files with 1 additions and 1 deletions
|
@ -299,7 +299,7 @@ class UiWebsocket(object):
|
||||||
self.response(to, {"error": "Site sign failed"})
|
self.response(to, {"error": "Site sign failed"})
|
||||||
return
|
return
|
||||||
|
|
||||||
site.content_manager.loadContent(add_bad_files=False) # Load new content.json, ignore errors
|
site.content_manager.loadContent(inner_path, add_bad_files=False) # Load new content.json, ignore errors
|
||||||
if response_ok:
|
if response_ok:
|
||||||
self.response(to, "ok")
|
self.response(to, "ok")
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue