Update caching data docs (#15901) (#16555) [skip ci]

This commit is contained in:
Evgeniy Moiseenko
2018-07-27 18:05:57 +03:00
committed by Alexander Makarov
parent d0712e4918
commit 2a4d57a232
2 changed files with 2 additions and 0 deletions

View File

@ -261,6 +261,7 @@ $result = Customer::getDb()->cache(function ($db) {
- `yii cache/flush cache1 cache2`: очищает кэш в компонентах `cache1`, `cache2` (можно передать несколько названий - `yii cache/flush cache1 cache2`: очищает кэш в компонентах `cache1`, `cache2` (можно передать несколько названий
компонентов кэширования, разделяя их пробелом) компонентов кэширования, разделяя их пробелом)
- `yii cache/flush-all`: очищает кэш во всех кэширующих компонентах приложения - `yii cache/flush-all`: очищает кэш во всех кэширующих компонентах приложения
- `yii cache/flush-schema db`: очищает кеш схемы базы данных для данного компонента соединения
> Info: Консольное приложение использует отдельный конфигурационный файл по умолчанию. Для получения должного > Info: Консольное приложение использует отдельный конфигурационный файл по умолчанию. Для получения должного
результата, убедитесь, что в конфигурациях консольного и веб-приложения у вас одинаковые компоненты кэширования. результата, убедитесь, что в конфигурациях консольного и веб-приложения у вас одинаковые компоненты кэширования.

View File

@ -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 - `yii cache/flush cache1 cache2`: flushes the cache components `cache1`, `cache2` (you can pass multiple component
names separated with space) names separated with space)
- `yii cache/flush-all`: flushes all cache components in the application - `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 > 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. components in your web and console application configs to reach the proper effect.