Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
module-backend
Console
Command
CacheStatusCommand.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Backend\Console\Command
;
8
9
use Symfony\Component\Console\Input\InputInterface;
10
use Symfony\Component\Console\Output\OutputInterface;
11
18
class
CacheStatusCommand
extends
AbstractCacheCommand
19
{
23
protected
function
configure
()
24
{
25
$this->setName(
'cache:status'
);
26
$this->setDescription(
'Checks cache status'
);
27
parent::configure();
28
}
29
33
protected
function
execute
(InputInterface $input, OutputInterface
$output
)
34
{
35
$output
->writeln(
'Current status:'
);
36
foreach
($this->cacheManager->getStatus() as
$cache
=>
$status
) {
37
$output
->writeln(sprintf(
'%30s: %d'
,
$cache
,
$status
));
38
}
39
}
40
}
Magento\Backend\Console\Command\AbstractCacheCommand
Definition:
AbstractCacheCommand.php:17
$output
$output
Definition:
classmap_generator.php:100
$status
$status
Definition:
order_status.php:8
Magento\Backend\Console\Command
Definition:
AbstractCacheCommand.php:7
$cache
$cache
Definition:
application_cache.php:8
Magento\Backend\Console\Command\CacheStatusCommand\execute
execute(InputInterface $input, OutputInterface $output)
Definition:
CacheStatusCommand.php:33
Magento\Backend\Console\Command\CacheStatusCommand\configure
configure()
Definition:
CacheStatusCommand.php:23
Magento\Backend\Console\Command\CacheStatusCommand
Definition:
CacheStatusCommand.php:18