Dont reload the whole site on content.json update
This commit is contained in:
parent
b7dfeb139b
commit
6806eed2ae
1 changed files with 0 additions and 2 deletions
|
@ -81,8 +81,6 @@ class FileRequest(object):
|
||||||
if not site or not site.settings["serving"]: # Site unknown or not serving
|
if not site or not site.settings["serving"]: # Site unknown or not serving
|
||||||
self.response({"error": "Unknown site"})
|
self.response({"error": "Unknown site"})
|
||||||
return False
|
return False
|
||||||
if site.settings["own"] and params["inner_path"].endswith("content.json"):
|
|
||||||
changed, deleted = site.content_manager.loadContent(params["inner_path"], add_bad_files=False)
|
|
||||||
|
|
||||||
if not params["inner_path"].endswith("content.json"):
|
if not params["inner_path"].endswith("content.json"):
|
||||||
self.response({"error": "Only content.json update allowed"})
|
self.response({"error": "Only content.json update allowed"})
|
||||||
|
|
Loading…
Reference in a new issue