Кэширование для схемы в продакшен режиме

This commit is contained in:
ErickSkrauch 2016-10-04 01:28:10 +03:00
parent 6975e30a9b
commit c511e35e4b
2 changed files with 11 additions and 1 deletions

View File

@ -0,0 +1,10 @@
<?php
return [
'components' => [
'db' => [
'enableSchemaCache' => true,
'schemaCacheDuration' => 3600,
'schemaCache' => 'cache',
],
],
];

View File

@ -2,6 +2,6 @@
return [
'bootstrap' => ['gii'],
'modules' => [
'gii' => 'yii\gii\Module',
'gii' => yii\gii\Module::class,
],
];