diff --git a/docs/guide-ru/caching-data.md b/docs/guide-ru/caching-data.md index 4a65bb10a8..c834c4cda5 100644 --- a/docs/guide-ru/caching-data.md +++ b/docs/guide-ru/caching-data.md @@ -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: Консольное приложение использует отдельный конфигурационный файл по умолчанию. Для получения должного результата, убедитесь, что в конфигурациях консольного и веб-приложения у вас одинаковые компоненты кэширования. diff --git a/docs/guide/caching-data.md b/docs/guide/caching-data.md index 598751a0ec..8d7663a698 100644 --- a/docs/guide/caching-data.md +++ b/docs/guide/caching-data.md @@ -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.