Если в настройках указать файловый кеш
Код: Выделить всё
'cache' => [
'class' => 'yii\caching\FileCache',
'keyPrefix' => $_SERVER['HTTP_HOST'],
],
Код: Выделить всё
'cache' => [
'class' => 'yii\caching\MemCache',
'keyPrefix' => $_SERVER['HTTP_HOST'],
'servers' => [
['host' => '127.0.0.1', 'port' => 11211],
]
],
Настройка соеденения с БД
Код: Выделить всё
'class' => 'isr2\components\db\Connection',
'dsn' => 'pgsql:host=localhost;dbname=******',
'username' => 'postgres',
'password' => '*********',
'charset' => 'utf8',
'enableSchemaCache' => true,