master
Aevann1 2022-01-14 04:36:34 +02:00
parent 54ab187e8c
commit dd6751fe66
1 changed files with 0 additions and 1 deletions

View File

@ -384,7 +384,6 @@ def disable_signups(v):
@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"}))
print(response)
if response == "<Response [200]>": return {"message": "Cache purged!"}
return {"error": "Failed to purge cache."}