You are here

function akamai_queue_purge_request in Akamai 7.3

Queues a purge request to be submitted at a later time.

Parameters

string $hostname: The name of the URL that contains the objects you want to purge.

array $paths: An array of paths to be purged.

1 call to akamai_queue_purge_request()
akamai_purge_paths in ./akamai.module
Purges a set of paths from Akamai's cache.

File

./akamai.module, line 487
Integration with Akamai CDN CCU API.

Code

function akamai_queue_purge_request($hostname, $paths) {
  $queue = DrupalQueue::get('akamai_ccu');
  return $queue
    ->createItem([
    'hostname' => $hostname,
    'paths' => $paths,
  ]);
}