public function AkamaiClientBase::purgeUrls in Akamai 8.3
Purges a list of URL objects.
Parameters
array $urls: List of URLs to purge.
Return value
\GuzzleHttp\Psr7\Response Response to purge request.
1 call to AkamaiClientBase::purgeUrls()
- AkamaiClientBase::purgeUrl in src/
AkamaiClientBase.php - Purges a single URL object.
File
- src/
AkamaiClientBase.php, line 237
Class
- AkamaiClientBase
- Connects to the Akamai EdgeGrid.
Namespace
Drupal\akamaiCode
public function purgeUrls(array $urls) {
$urls = $this
->normalizeUrls($urls);
foreach ($urls as $url) {
if ($this
->isAkamaiManagedUrl($url) === FALSE) {
throw new \InvalidArgumentException("The URL {$url} is not managed by Akamai. Try setting your Akamai base url.");
}
}
return $this
->purgeRequest($urls);
}