Elgg  Version 3.0
FlushCommand.php
Go to the documentation of this file.
1 <?php
2 
3 namespace Elgg\Cli;
4 
8 class FlushCommand extends Command {
9 
13  protected function configure() {
14  $this->setName('flush')
15  ->setDescription('Flush all caches');
16  }
17 
21  protected function command() {
22 
24 
25  $this->write('System caches have been flushed');
26 
27  return 0;
28  }
29 }
write($messages, $level=LogLevel::INFO)
Write messages to output buffer.
Definition: BaseCommand.php:85
Abstract command with some utility methods.
Definition: Command.php:12
elgg-cli flush
Definition: FlushCommand.php:8
elgg_flush_caches()
Flush all the registered caches.
Definition: cache.php:234