PHP 클래스 yii\console\controllers\CacheController

부터: 2.0
저자: Alexander Makarov ([email protected])
상속: extends yii\console\Controller
파일 보기 프로젝트 열기: yiisoft/yii2

공개 메소드들

메소드 설명
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 ( )