Elgg
Version 6.1
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
engine
classes
Elgg
Cli
CacheClearCommand.php
Go to the documentation of this file.
1
<?php
2
3
namespace
Elgg\Cli
;
4
8
class
CacheClearCommand
extends
Command
{
9
13
protected
function
configure
() {
14
$this->setName(
'cache:clear'
)
15
->setDescription(
elgg_echo
(
'cli:cache:clear:description'
));
16
}
17
21
protected
function
command
() {
22
elgg_clear_caches
();
23
24
if
(!$this->
option
(
'quiet'
)) {
25
$this->
write
(
elgg_echo
(
'admin:cache:cleared'
));
26
}
27
28
return
self::SUCCESS;
29
}
30
}
Elgg\Cli\CacheClearCommand\command
command()
{}
Definition:
CacheClearCommand.php:21
elgg_echo
elgg_echo(string $message_key, array $args=[], string $language= '')
Elgg language module Functions to manage language and translations.
Definition:
languages.php:17
Elgg\Cli\CacheClearCommand\configure
configure()
{}
Definition:
CacheClearCommand.php:13
Elgg\Cli\BaseCommand\write
write($messages, $level=LogLevel::INFO)
Write messages to output buffer.
Definition:
BaseCommand.php:93
Elgg\Cli\Command
Abstract command with some utility methods.
Definition:
Command.php:12
Elgg\Cli
Definition:
Application.php:3
Elgg\Cli\CacheClearCommand
elgg-cli cache:clear
Definition:
CacheClearCommand.php:8
Elgg\Cli\BaseCommand\option
option($name)
Returns option value.
Definition:
BaseCommand.php:146
elgg_clear_caches
elgg_clear_caches()
Clear all the registered caches.
Definition:
cache.php:103
Generated on Wed Dec 4 2024 00:00:20 for Elgg by
1.8.11