adjust caching on home page

This commit is contained in:
Cyberes 2023-08-24 16:48:36 -06:00
parent 763dd832cc
commit d1b227fd43
1 changed files with 1 additions and 1 deletions

View File

@ -94,7 +94,7 @@ app.register_blueprint(bp, url_prefix='/api/v1/')
@app.route('/') @app.route('/')
@app.route('/api') @app.route('/api')
@cache.cached(timeout=60, query_string=True) @cache.cached(timeout=10, query_string=True)
def home(): def home():
if not opts.full_client_api: if not opts.full_client_api:
opts.full_client_api = f'https://{request.headers.get("Host")}/{opts.frontend_api_client.strip("/")}' opts.full_client_api = f'https://{request.headers.get("Host")}/{opts.frontend_api_client.strip("/")}'