fix clearing cf cache
parent
23a241f026
commit
9f1061fedb
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue