You are here

function drush_fastly_purge_url in Fastly 8.3

Call back function to purge a single URL at Fastly from drush.

File

./fastly.drush.inc, line 49
Provides drush commands for Fastly related operations.

Code

function drush_fastly_purge_url($url = '') {
  $api = Drupal::service('fastly.api');
  if (!empty($url)) {
    $api
      ->purgeUrl($url);
  }
}