From 4ab0921b701f7bbdfeea5568b63745effe9caf7d Mon Sep 17 00:00:00 2001 From: Anyon Date: Fri, 18 Dec 2020 16:57:01 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=85=8D=E7=BD=AE=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E5=AD=97=E6=AE=B5=E7=BC=93=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/database.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/database.php b/config/database.php index be3705785..cfe1a21fa 100644 --- a/config/database.php +++ b/config/database.php @@ -58,7 +58,7 @@ return [ // 监听SQL 'trigger_sql' => true, // 开启字段缓存 - 'fields_cache' => false, + 'fields_cache' => !app()->isDebug(), ], ], ];