调试系统性能;

This commit is contained in:
2022-02-12 18:55:18 +08:00
parent 7d8b948543
commit 84ba6f145e
4 changed files with 6 additions and 6 deletions

View File

@@ -1,7 +1,6 @@
<?php <?php
namespace app\common\model; namespace app\common\model;
use app\common\traits\AutoClearCache;
use think\Model; use think\Model;
class Base extends Model class Base extends Model

View File

@@ -19,8 +19,8 @@
], ],
"require": { "require": {
"php": ">=7.1.0", "php": ">=7.1.0",
"topthink/framework": "6.0.*", "topthink/framework": "^6.0.0",
"topthink/think-orm": "2.0.*", "topthink/think-orm": "^2.0.0",
"topthink/think-view": "^1.0", "topthink/think-view": "^1.0",
"topthink/think-migration": "^3.0", "topthink/think-migration": "^3.0",
"topthink/think-helper": "^3.1", "topthink/think-helper": "^3.1",

View File

@@ -1,4 +1,6 @@
<?php <?php
use think\facade\App;
use think\facade\Env; use think\facade\Env;
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------

View File

@@ -55,9 +55,8 @@ return [
// 监听SQL // 监听SQL
'trigger_sql' => true, 'trigger_sql' => true,
// 开启字段缓存 // 开启字段缓存
'fields_cache' => false, 'fields_cache' => true,
// 字段缓存路径
'schema_cache_path' => app()->getRuntimePath() . 'schema' . DIRECTORY_SEPARATOR,
], ],
'sqlite' => [ 'sqlite' => [
// 数据库类型 // 数据库类型