ddos対策

This commit is contained in:
yuuki 2024-02-15 04:48:15 +09:00
parent 560c75189f
commit dc61e1e077

2
app.py
View File

@ -473,7 +473,7 @@ def route_api_songs():
song['song_skin'] = None
del song['skin_id']
return jsonify(songs)
return cache_wrap(flask.jsonify(songs), 60)
@app.route(basedir + 'api/categories')
@app.cache.cached(timeout=15)