public function Fastly::purgeKey in Fastly 7.2
Same name and namespace in other branches
- 7 fastly.api.inc \Fastly::purgeKey()
Purge cache by key.
File
- ./
fastly.api.inc, line 189 - Contains Faslt class that handles API calls to the Fastly service.
Class
- Fastly
- Fastly API for Drupal.
Code
public function purgeKey($key) {
$this->webhook
->sendMessage($key . " " . t("key is purged"), "INFO", "purge_actions");
$this
->purgeKeys(array(
$key,
));
}