'cache' => [
'class' => 'yii\caching\FileCache',
],
<?php
$config = [
'aliases' => [
'@bower' => '@vendor/bower-asset',
'@npm' => '@vendor/npm-asset',
],
'vendorPath' => dirname(dirname(__DIR__)) . '/vendor',
'components' => [
'cache' => [
'class' => 'yii\caching\FileCache',
],
],
];
if(YII_ENV == YII_ENV_DEV){
unset($config['components']['cache']);
}
return $config;
\common\config\main-local.php
...
'db' => [
'class' => 'yii\db\Connection',
'dsn' => 'mysql:host=localhost;dbname=****',
'username' => '****',
'password' => '****',
'charset' => 'utf8',
'enableSchemaCache' => false, // Вместо `true` поставить `false` и обновить через Ctrl+F5 или Cmd + R (Mac OS)
'schemaCacheDuration' => 3600,
'schemaCache' => 'cache',
],
...