diff --git a/library/think/view/driver/Think.php b/library/think/view/driver/Think.php index f550e915..1521eca3 100644 --- a/library/think/view/driver/Think.php +++ b/library/think/view/driver/Think.php @@ -39,9 +39,7 @@ 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); }