This commit is contained in:
Aevann1 2022-01-21 13:55:53 +02:00
parent 12e600028c
commit 9719a0b9ee
6 changed files with 12 additions and 21 deletions

View file

@ -1211,6 +1211,7 @@ def admin_distinguish_comment(c_id, v):
@app.get("/admin/dump_cache")
@admin_level_required(2)
def admin_dump_cache(v):
with open('marsey_count.json', 'w') as f: dump(cache.get("marsey_count"), f)
cache.clear()
return {"message": "Internal cache cleared."}