ddos対策
This commit is contained in:
2
app.py
2
app.py
@@ -473,7 +473,7 @@ def route_api_songs():
|
|||||||
song['song_skin'] = None
|
song['song_skin'] = None
|
||||||
del song['skin_id']
|
del song['skin_id']
|
||||||
|
|
||||||
return jsonify(songs)
|
return cache_wrap(flask.jsonify(songs), 60)
|
||||||
|
|
||||||
@app.route(basedir + 'api/categories')
|
@app.route(basedir + 'api/categories')
|
||||||
@app.cache.cached(timeout=15)
|
@app.cache.cached(timeout=15)
|
||||||
|
|||||||
Reference in New Issue
Block a user