调试模式下 关闭模板缓存

This commit is contained in:
thinkphp
2016-08-05 13:22:05 +08:00
parent 3278a7d628
commit 75e1e6492e

View File

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