From 75e1e6492ec877efd1a6021997457e9a23aa6600 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Fri, 5 Aug 2016 13:22:05 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E8=AF=95=E6=A8=A1=E5=BC=8F=E4=B8=8B?= =?UTF-8?q?=20=E5=85=B3=E9=97=AD=E6=A8=A1=E6=9D=BF=E7=BC=93=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/view/driver/Think.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/library/think/view/driver/Think.php b/library/think/view/driver/Think.php index 264102b2..f550e915 100644 --- a/library/think/view/driver/Think.php +++ b/library/think/view/driver/Think.php @@ -39,6 +39,9 @@ class Think if (empty($this->config['view_path'])) { $this->config['view_path'] = App::$modulePath . 'view' . DS; } + if (App::$debug) { + $this->config['tpl_cache'] = false; + } $this->template = new Template($this->config); }