From 507327db49ec03cfec39a2e92c73f84422ec6ded Mon Sep 17 00:00:00 2001 From: Cyberes Date: Thu, 14 Sep 2023 14:30:01 -0600 Subject: [PATCH] lower caching of home page --- server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.py b/server.py index 7a600fb..365fa2c 100644 --- a/server.py +++ b/server.py @@ -118,7 +118,7 @@ app.register_blueprint(openai_bp, url_prefix='/api/openai/v1/') @app.route('/') @app.route('/api') @app.route('/api/openai') -@cache.cached(timeout=60) +@cache.cached(timeout=10) def home(): if not opts.base_client_api: opts.base_client_api = f'{request.headers.get("Host")}/{opts.frontend_api_client.strip("/")}'