You are here

public function Fastly::purgeKeys in Fastly 7.2

Purge cache by multiple keys.

1 call to Fastly::purgeKeys()
Fastly::purgeKey in ./fastly.api.inc
Purge cache by key.

File

./fastly.api.inc, line 197
Contains Faslt class that handles API calls to the Fastly service.

Class

Fastly
Fastly API for Drupal.

Code

public function purgeKeys(array $keys) {
  $uris = array();
  foreach ($keys as $key) {
    $uris[] = 'service/' . $this->service_id . '/purge/' . $key;
  }
  $this
    ->queryMultiple($uris, array(), 'POST');
}