mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-07 23:22:48 +08:00
调试模式下 关闭模板缓存
This commit is contained in:
@@ -39,6 +39,9 @@ class Think
|
|||||||
if (empty($this->config['view_path'])) {
|
if (empty($this->config['view_path'])) {
|
||||||
$this->config['view_path'] = App::$modulePath . 'view' . DS;
|
$this->config['view_path'] = App::$modulePath . 'view' . DS;
|
||||||
}
|
}
|
||||||
|
if (App::$debug) {
|
||||||
|
$this->config['tpl_cache'] = false;
|
||||||
|
}
|
||||||
$this->template = new Template($this->config);
|
$this->template = new Template($this->config);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user