Elgg
Version 3.0
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
engine
classes
Elgg
Cli
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
23
elgg_flush_caches
();
24
25
$this->
write
(
'System caches have been flushed'
);
26
27
return
0;
28
}
29
}
Elgg\Cli\FlushCommand\configure
configure()
{}
Definition:
FlushCommand.php:13
Elgg\Cli\FlushCommand\command
command()
{}
Definition:
FlushCommand.php:21
Elgg\Cli\BaseCommand\write
write($messages, $level=LogLevel::INFO)
Write messages to output buffer.
Definition:
BaseCommand.php:85
Elgg\Cli\Command
Abstract command with some utility methods.
Definition:
Command.php:12
Elgg\Cli
Definition:
Application.php:3
Elgg\Cli\FlushCommand
elgg-cli flush
Definition:
FlushCommand.php:8
elgg_flush_caches
elgg_flush_caches()
Flush all the registered caches.
Definition:
cache.php:234
Generated on Thu Jan 21 2021 00:00:20 for Elgg by
1.8.11