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