修改fields_cache设置;

This commit is contained in:
augushong
2022-01-10 14:11:27 +08:00
parent 57b301dfdb
commit 0517d8ffed

View File

@@ -1,4 +1,5 @@
<?php <?php
use think\facade\Env; use think\facade\Env;
return [ return [
@@ -53,9 +54,8 @@ return [
// 监听SQL // 监听SQL
'trigger_sql' => true, 'trigger_sql' => true,
// 开启字段缓存 // 开启字段缓存
'fields_cache' => false, 'fields_cache' => Env::get('database.fields_cache', false),
// 字段缓存路径
'schema_cache_path' => app()->getRuntimePath() . 'schema' . DIRECTORY_SEPARATOR,
], ],
// 更多的数据库配置信息 // 更多的数据库配置信息