diff --git a/files/__main__.py b/files/__main__.py index fc3b3fa20..1d072c9d7 100644 --- a/files/__main__.py +++ b/files/__main__.py @@ -116,7 +116,8 @@ def after_request(response): response.headers.add("X-Frame-Options", "deny") return response -with open("marseys.json", 'r') as f: cache.set("marseys", loads(f.read())) +if not cache.get("marseys"): + with open("marseys.json", 'r') as f: cache.set("marseys", loads(f.read())) from files.routes import *