public function FastlyCommands::purgeAll in Fastly 8.3
Purge/invalidate all site content.
@command fastly:purge:all @aliases fpall
File
- src/
Commands/ FastlyCommands.php, line 45
Class
- FastlyCommands
- Provides drush commands for Fastly.
Namespace
Drupal\fastly\CommandsCode
public function purgeAll() {
if ($this->api
->purgeAll()) {
$this
->output()
->writeln("<info>Successfully purged/invalidated all site content on Fastly.</info>");
}
else {
$this
->output()
->writeln("<error>Unable to purge/invalidate all site content on Fastly.</error>");
}
}