purgeCache bug


The purgeCache function the PHP SDK stopped working today. The first argument is the zone ID, the second argument is an array with two URLs in it. We are getting this error:

Client error: DELETE https://api.cloudflare.com/client/v4/zones/{redacted_zone_id}/purge_cache resulted in a 400 Bad Request response: {“success”:false,“errors”:[{“code”:1014,“message”:"“files”, “tags”, or “hosts” must be an array"}],“messages”:[]," (truncated…)

$t = $zones->cachePurge(config::$third_party_ids[‘cloudflare’][‘zone_id’], $files);

$files is 100% an array.

This worked until today.


Just came across this exact same issue. Any updates?


Looks like if I comment out line 169 in Endpoints/Zones.php it works.


Any updates?


Any update ?


Just ran into this, too. Would be nice if Cloudflare said something?