From 88cf11cf2055ffeacf62cd9cda9806533920fc64 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Fri, 14 Jan 2022 04:39:21 +0200 Subject: [PATCH] bbb --- files/routes/admin.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/files/routes/admin.py b/files/routes/admin.py index fed71742a..945567bfc 100644 --- a/files/routes/admin.py +++ b/files/routes/admin.py @@ -383,7 +383,8 @@ def disable_signups(v): @app.post("/admin/purge_cache") @admin_level_required(3) def purge_cache(v): - response = str(requests.post(f'https://api.cloudflare.com/client/v4/zones/{CF_ZONE}/purge_cache', headers=CF_HEADERS, data={"purge_everything":"true"})) + response = str(requests.post(f'https://api.cloudflare.com/client/v4/zones/{CF_ZONE}/purge_cache', headers=CF_HEADERS, data={"purge_everything":"true"}).text) + print(response) if response == "": return {"message": "Cache purged!"} return {"error": "Failed to purge cache."}