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.