You are here

protected function TomeSuperCacheRebuildCommand::execute in Tome 8

File

modules/tome_static/modules/tome_static_super_cache/src/Commands/TomeSuperCacheRebuildCommand.php, line 27

Class

TomeSuperCacheRebuildCommand
Contains the tome:super-cache-rebuild command.

Namespace

Drupal\tome_static_super_cache\Commands

Code

protected function execute(InputInterface $input, OutputInterface $output) {
  $GLOBALS[SuperStaticCache::FULL_REBUILD_KEY] = TRUE;
  drupal_flush_all_caches();
  $this
    ->io()
    ->success('Full cache rebuild complete.');
}