fix clearing cf cache

remotes/1693176582716663532/tmp_refs/heads/watchparty
Aevann1 2022-11-08 10:05:43 +02:00
parent 23a241f026
commit 9f1061fedb
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ def set_security_level(under_attack="high") -> bool:
return _request_from_cloudflare("settings/security_level", "PATCH", f'{{"value":"{under_attack}"}}')
def clear_cloudflare_cache() -> bool:
return _request_from_cloudflare("clear_cloudflare_cache", "POST", '{"purge_everything":true}')
return _request_from_cloudflare("purge_cache", "POST", '{"purge_everything":true}')
def purge_files_in_cache(files:Union[List[str],str]) -> bool:
if CF_ZONE == DEFAULT_CLOUDFLARE_ZONE: return False