Свойство | Тип | Описание | |
---|---|---|---|
$cache | cache component(s), which should be flushed. If not set action will flush all cache components found in current application. Each cache component can be specified as application component name, instance of [[Cache]] or its configuration. For example: php [ 'cache', 'frontendCache' => [ 'class' => 'yii\caching\DbCache', 'cacheTable' => '{{%frontendCache}}', ], 'objectCache' => new \yii\caching\DbCache(['cacheTable' => '{{%objectCache}}']), ] | ||
$flash | flash message to be set on success. | ||
$returnUrl | the default return URL in case it was not set previously. This URL will be used only in case automatic determine of return URL failed. |
Метод | Описание | |
---|---|---|
run ( string | array | null $name = null ) : mixed | Flushes associated cache components. |
Метод | Описание | |
---|---|---|
findCaches ( array $cachesNames = [] ) : array | Returns array of caches in the system, keys are cache components names, values are class names. | |
flushCaches ( array $caches ) | Flushes given caches list. | |
goBack ( ) : mixed | Redirects the browser to the last visited page. | |
isCacheClass ( string $className ) : boolean | Checks if given class is a Cache class. |
public $cache |