mirror of
https://github.com/elyby/accounts.git
synced 2024-12-25 22:59:53 +05:30
Кэширование для схемы в продакшен режиме
This commit is contained in:
parent
6975e30a9b
commit
c511e35e4b
10
common/config/config-prod.php
Normal file
10
common/config/config-prod.php
Normal file
@ -0,0 +1,10 @@
|
||||
<?php
|
||||
return [
|
||||
'components' => [
|
||||
'db' => [
|
||||
'enableSchemaCache' => true,
|
||||
'schemaCacheDuration' => 3600,
|
||||
'schemaCache' => 'cache',
|
||||
],
|
||||
],
|
||||
];
|
@ -2,6 +2,6 @@
|
||||
return [
|
||||
'bootstrap' => ['gii'],
|
||||
'modules' => [
|
||||
'gii' => 'yii\gii\Module',
|
||||
'gii' => yii\gii\Module::class,
|
||||
],
|
||||
];
|
||||
|
Loading…
Reference in New Issue
Block a user