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); }