yes, because we take CF as static file CDN , and usually static files don’t need frequent purge
if you really want to have this happened , you can try this code snippet
add_action('litespeed_purged_all', 'cloudflare_purge_all');
function cloudflare_purge_all() {
$url = "https://api.cloudflare.com/client/v4/zones/ZZZZZZZZZZONE_IDDDDDDDDD/purge_cache";
$curl = curl_init($url);
curl_setopt($curl, CURLOPT_URL, $url);
curl_setopt($curl, CURLOPT_POST, true);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
$headers = array(
"Authorization: Bearer API TOKEEEEEEEEEEEEEEEEN",
"Content-Type: application/json",
);
curl_setopt($curl, CURLOPT_HTTPHEADER, $headers);
$data = '{"purge_everything":true}';
curl_setopt($curl, CURLOPT_POSTFIELDS, $data);
curl_exec($curl);
curl_close($curl);
}
update the token and zone ID to yours