diff --git a/files/routes/admin.py b/files/routes/admin.py index b8cf14297..5637dfaea 100644 --- a/files/routes/admin.py +++ b/files/routes/admin.py @@ -1531,7 +1531,7 @@ def admin_distinguish_comment(c_id, v): if comment.distinguish_level: return {"message": "Comment distinguished!"} else: return {"message": "Comment undistinguished!"} -@app.get("/admin/dump_cache") +@app.post("/admin/dump_cache") @limiter.exempt @admin_level_required(2) def admin_dump_cache(v): diff --git a/files/templates/admin/admin_home.html b/files/templates/admin/admin_home.html index 17901e7be..22c71a730 100644 --- a/files/templates/admin/admin_home.html +++ b/files/templates/admin/admin_home.html @@ -110,7 +110,8 @@ - + + {% endif %} {% endblock %}