You are here

protected function Fastly::purgeQuery in Fastly 7

Same name and namespace in other branches
  1. 7.2 fastly.api.inc \Fastly::purgeQuery()

Performs an actual purge request for the given path.

1 call to Fastly::purgeQuery()
Fastly::purgePath in ./fastly.api.inc
Purge cache by path.

File

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

Class

Fastly
Fastly API for Drupal.

Code

protected function purgeQuery($path) {
  drupal_http_request(url($path, array(
    'absolute' => TRUE,
  )), array(
    'headers' => array(
      'Host' => $_SERVER['HTTP_HOST'],
    ),
    'method' => 'PURGE',
  ));
}