Elgg
Version 6.0
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
engine
classes
Elgg
Cli
CachePurgeCommand.php
Go to the documentation of this file.
1
<?php
2
3
namespace
Elgg\Cli
;
4
8
class
CachePurgeCommand
extends
Command
{
9
13
protected
function
configure
() {
14
$this->setName(
'cache:purge'
)
15
->setDescription(
elgg_echo
(
'cli:cache:purge:description'
));
16
}
17
21
protected
function
command
() {
22
elgg_purge_caches
();
23
24
if
(!$this->
option
(
'quiet'
)) {
25
$this->
write
(
elgg_echo
(
'admin:cache:purged'
));
26
}
27
28
return
self::SUCCESS;
29
}
30
}
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\CachePurgeCommand\configure
configure()
{}
Definition:
CachePurgeCommand.php:13
elgg_purge_caches
elgg_purge_caches()
Purge all the registered caches.
Definition:
cache.php:204
Elgg\Cli\CachePurgeCommand\command
command()
{}
Definition:
CachePurgeCommand.php:21
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\CachePurgeCommand
elgg-cli cache:purge
Definition:
CachePurgeCommand.php:8
Elgg\Cli\BaseCommand\option
option($name)
Returns option value.
Definition:
BaseCommand.php:146
Generated on Fri Oct 11 2024 00:00:24 for Elgg by
1.8.11