function drush_fastly_purge_all in Fastly 8.3
Call back function to purge Fastly caches from drush.
File
- ./
fastly.drush.inc, line 35 - Provides drush commands for Fastly related operations.
Code
function drush_fastly_purge_all($tags = '') {
$api = Drupal::service('fastly.api');
if (empty($tags)) {
$api
->purgeAll();
}
else {
$cache_tags = explode(',', $tags);
$api
->purgeKeys($cache_tags);
}
}