PHP Класс yii\console\controllers\CacheController

С версии: 2.0
Автор: Alexander Makarov ([email protected])
Наследование: extends yii\console\Controller
Показать файл Открыть проект

Открытые методы

Метод Описание
actionFlush ( ) Flushes given cache components.
actionFlushAll ( ) Flushes all caches registered in the system.
actionFlushSchema ( string $db = 'db' ) : integer Clears DB schema cache for a given connection component.
actionIndex ( ) Lists the caches that can be flushed.

Приватные методы

Метод Описание
confirmFlush ( array $cachesNames ) : boolean Prompts user with confirmation if caches should be flushed.
findCaches ( array $cachesNames = [] ) : array Returns array of caches in the system, keys are cache components names, values are class names.
isCacheClass ( string $className ) : boolean Checks if given class is a Cache class.
notifyCachesCanBeFlushed ( array $caches ) Notifies user that given caches are found and can be flushed.
notifyFlushed ( array $caches )
notifyNoCachesFound ( ) Notifies user that there was not found any cache in the system.
notifyNotFoundCaches ( array $cachesNames ) Notifies user that given cache components were not found in the system.

Описание методов

actionFlush() публичный Метод

For example, # flushes caches specified by their id: "first", "second", "third" yii cache/flush first second third
public actionFlush ( )

actionFlushAll() публичный Метод

Flushes all caches registered in the system.
public actionFlushAll ( )

actionFlushSchema() публичный Метод

# clears cache schema specified by component id: "db" yii cache/flush-schema db
С версии: 2.0.1
public actionFlushSchema ( string $db = 'db' ) : integer
$db string id connection component
Результат integer exit code

actionIndex() публичный Метод

Lists the caches that can be flushed.
public actionIndex ( )