Ver Fonte

修改配置增加字段缓存

Anyon há 4 anos atrás
pai
commit
4ab0921b70
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      config/database.php

+ 1 - 1
config/database.php

@@ -58,7 +58,7 @@ return [
             // 监听SQL
             'trigger_sql'     => true,
             // 开启字段缓存
-            'fields_cache'    => false,
+            'fields_cache'    => !app()->isDebug(),
         ],
     ],
 ];