调试模式 关闭字段缓存 取消app类的日志初始化和缓存初始化 改为使用的时候自动初始化

This commit is contained in:
thinkphp
2016-01-23 13:10:35 +08:00
parent bd14a7c328
commit ac0547e36b
4 changed files with 24 additions and 14 deletions

View File

@@ -1142,7 +1142,7 @@ class Model
}
// 记录字段类型信息
$this->fields['_type'] = $type;
Cache::set($guid, $this->fields);
APP_DEBUG && Cache::set($guid, $this->fields);
$fields = $this->fields;
} else {
$this->fields = $fields;