mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-01 20:19:42 +08:00
committed by
Alexander Makarov
parent
d0712e4918
commit
2a4d57a232
@ -261,6 +261,7 @@ $result = Customer::getDb()->cache(function ($db) {
|
||||
- `yii cache/flush cache1 cache2`: очищает кэш в компонентах `cache1`, `cache2` (можно передать несколько названий
|
||||
компонентов кэширования, разделяя их пробелом)
|
||||
- `yii cache/flush-all`: очищает кэш во всех кэширующих компонентах приложения
|
||||
- `yii cache/flush-schema db`: очищает кеш схемы базы данных для данного компонента соединения
|
||||
|
||||
> Info: Консольное приложение использует отдельный конфигурационный файл по умолчанию. Для получения должного
|
||||
результата, убедитесь, что в конфигурациях консольного и веб-приложения у вас одинаковые компоненты кэширования.
|
||||
|
||||
@ -427,6 +427,7 @@ You can flush the cache from the console by calling `yii cache/flush` as well.
|
||||
- `yii cache/flush cache1 cache2`: flushes the cache components `cache1`, `cache2` (you can pass multiple component
|
||||
names separated with space)
|
||||
- `yii cache/flush-all`: flushes all cache components in the application
|
||||
- `yii cache/flush-schema db`: clears DB schema cache for a given connection component
|
||||
|
||||
> Info: Console application uses a separate configuration file by default. Ensure, that you have the same caching
|
||||
components in your web and console application configs to reach the proper effect.
|
||||
|
||||
Reference in New Issue
Block a user