You are here

public function Fastly::purgePath in Fastly 7

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

Purge cache by path.

File

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

Class

Fastly
Fastly API for Drupal.

Code

public function purgePath($path) {
  global $base_url;
  $path = str_replace($base_url, '', $path);
  $this
    ->purgeQuery($path);
  $this
    ->purgeQuery(drupal_get_path_alias($path));
}