diff --git a/files/routes/admin.py b/files/routes/admin.py index 34e142d942..7e07e99d4f 100644 --- a/files/routes/admin.py +++ b/files/routes/admin.py @@ -1213,6 +1213,7 @@ def admin_distinguish_comment(c_id, v): def admin_dump_cache(v): with open('marsey_count.json', 'w') as f: dump(cache.get("marsey_count"), f) cache.clear() + with open("marsey_count.json", 'r') as f: cache.set("marsey_count", loads(f.read())) return {"message": "Internal cache cleared."}