adjust caching on home page
This commit is contained in:
parent
763dd832cc
commit
d1b227fd43
|
@ -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("/")}'
|
||||||
|
|
Reference in New Issue