基本
文件
流程
错误
SQL
调试
- 请求信息 : 2024-12-08 00:43:05 HTTP/1.0 GET : http://127.0.0.1:8081/portal/list/index/id/2.html?page=5
- 运行时间 : 0.051498s [ 吞吐率:19.42req/s ] 内存消耗:4,453.16kb 文件加载:108
- 查询信息 : 12 queries 0 writes
- 缓存信息 : 5 reads,0 writes
- [ LANG ] /var/www/html/vendor/thinkphp/lang/zh-cn.php
- [ DB ] INIT mysql
- [ LANG ] /var/www/html/app/portal//lang/zh-cn.php
- [ ROUTE ] array (
)
- [ HEADER ] array (
'host' => '127.0.0.1:8081',
'connection' => 'close',
'user-agent' => 'CCBot/2.0 (https://commoncrawl.org/faq/)',
'accept' => 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
'accept-language' => 'en-US,en;q=0.5',
'if-modified-since' => 'Sat, 15 Jun 2024 06:34:28 GMT',
'accept-encoding' => 'br,gzip',
)
- [ PARAM ] array (
'page' => '5',
'id' => '2',
)
- [ LANG ] /var/www/html/vendor/thinkcmf/cmf/src/behavior/../lang/zh-cn.php
- [ LANG ] /var/www/html/vendor/thinkcmf/cmf-app/src/admin/lang/zh-cn.php
- [ LANG ] /var/www/html/vendor/thinkcmf/cmf-app/src/admin/lang/zh-cn/common.php
- [ LANG ] /var/www/html/vendor/thinkcmf/cmf-app/src/user/lang/zh-cn.php
- [ LANG ] /var/www/html/app/portal/lang/zh-cn/common.php
- [ LANG ] /var/www/html/app/portal/lang/zh-cn/home.php
- [ VIEW ] /var/www/html/public/themes/yunlianjiaotong/portal/list.html [ array (
0 => 'site_info',
1 => 'category',
2 => 'theme_vars',
3 => 'theme_widgets',
) ]
- [ DB ] INIT mysql
- [ DB ] CONNECT:[ UseTime:0.000769s ] mysql:host=mysql;port=3306;dbname=yunlianjiaotong;charset=utf8mb4
- [ SQL ] SHOW COLUMNS FROM `cmf_hook` [ RunTime:0.000535s ]
- [ SQL ] SELECT `hook` FROM `cmf_hook` WHERE `type` = 1 OR ( `type` = 3 AND ( `app` = '' or `app` = 'cmf' ) ) [ RunTime:0.000347s ]
- [ EXPLAIN : array (
'id' => 1,
'select_type' => 'SIMPLE',
'table' => 'cmf_hook',
'partitions' => NULL,
'type' => 'ALL',
'possible_keys' => NULL,
'key' => NULL,
'key_len' => NULL,
'ref' => NULL,
'rows' => 70,
'filtered' => 11.710000038146973,
'extra' => 'Using where',
) ]
- [ SQL ] SHOW COLUMNS FROM `cmf_hook_plugin` [ RunTime:0.000383s ]
- [ SQL ] SELECT `hook`,`plugin` FROM `cmf_hook_plugin` WHERE `status` = 1 AND `hook` IN ('app_begin','module_init','action_begin','view_filter','app_end','log_write','response_end','admin_init','home_init','send_mobile_verification_code','body_start','before_head_end','footer_start','before_footer','before_footer_end','before_body_end','left_sidebar_start','before_left_sidebar_end','right_sidebar_start','before_right_sidebar_end','comment','guestbook','switch_theme','after_content','before_content','log_write_done','switch_admin_theme','captcha_image') ORDER BY `list_order` ASC [ RunTime:0.000306s ]
- [ EXPLAIN : array (
'id' => 1,
'select_type' => 'SIMPLE',
'table' => 'cmf_hook_plugin',
'partitions' => NULL,
'type' => 'ALL',
'possible_keys' => NULL,
'key' => NULL,
'key_len' => NULL,
'ref' => NULL,
'rows' => 1,
'filtered' => 100.0,
'extra' => 'Using where; Using filesort',
) ]
- [ SQL ] SHOW COLUMNS FROM `cmf_portal_category` [ RunTime:0.000665s ]
- [ SQL ] SELECT * FROM `cmf_portal_category` WHERE `id` = 2 AND `status` = 1 LIMIT 1 [ RunTime:0.000365s ]
- [ EXPLAIN : array (
'id' => 1,
'select_type' => 'SIMPLE',
'table' => 'cmf_portal_category',
'partitions' => NULL,
'type' => 'const',
'possible_keys' => 'PRIMARY',
'key' => 'PRIMARY',
'key_len' => '8',
'ref' => 'const',
'rows' => 1,
'filtered' => 100.0,
'extra' => NULL,
) ]
- [ SQL ] SHOW COLUMNS FROM `cmf_theme_file` [ RunTime:0.000423s ]
- [ SQL ] SELECT `more` FROM `cmf_theme_file` WHERE `theme` = 'yunlianjiaotong' AND ( `is_public` = 1 OR `file` = 'portal/list' ) [ RunTime:0.000281s ]
- [ EXPLAIN : array (
'id' => 1,
'select_type' => 'SIMPLE',
'table' => 'cmf_theme_file',
'partitions' => NULL,
'type' => 'ALL',
'possible_keys' => NULL,
'key' => NULL,
'key_len' => NULL,
'ref' => NULL,
'rows' => 8,
'filtered' => 12.5,
'extra' => 'Using where',
) ]
- [ DB ] CONNECT:[ UseTime:0.000604s ] mysql:host=mysql;port=3306;dbname=yunlianjiaotong;charset=utf8mb4
- [ SQL ] SELECT * FROM `cmf_portal_category` WHERE `parent_id` = 1 [ RunTime:0.000294s ]
- [ EXPLAIN : array (
'id' => 1,
'select_type' => 'SIMPLE',
'table' => 'cmf_portal_category',
'partitions' => NULL,
'type' => 'ALL',
'possible_keys' => NULL,
'key' => NULL,
'key_len' => NULL,
'ref' => NULL,
'rows' => 13,
'filtered' => 10.0,
'extra' => 'Using where',
) ]
- [ SQL ] SHOW COLUMNS FROM `cmf_portal_post` [ RunTime:0.000527s ]
- [ SQL ] SELECT COUNT(*) AS tp_count FROM ( SELECT count(*) AS think_count FROM `cmf_portal_post` `post` INNER JOIN `cmf_portal_category_post` `category_post` ON `post`.`id`=`category_post`.`post_id` WHERE `post`.`post_status` = 1 AND `post`.`post_type` = 1 AND `post`.`delete_time` = 0 AND ( `post`.`create_time` >= 0 ) AND ( `category_post`.`category_id` = '2' ) AND ( `post`.`published_time` > 0 and `post`.`published_time` < 1733589785 ) GROUP BY `post`.`id` ) `_group_count_` [ RunTime:0.006437s ]
- [ EXPLAIN : array (
'id' => 1,
'select_type' => 'PRIMARY',
'table' => '<derived2>',
'partitions' => NULL,
'type' => 'ALL',
'possible_keys' => NULL,
'key' => NULL,
'key_len' => NULL,
'ref' => NULL,
'rows' => 9,
'filtered' => 100.0,
'extra' => NULL,
) ]
- [ SQL ] SELECT post.*,min(category_post.category_id) as category_id FROM `cmf_portal_post` `post` INNER JOIN `cmf_portal_category_post` `category_post` ON `post`.`id`=`category_post`.`post_id` WHERE `post`.`post_status` = 1 AND `post`.`post_type` = 1 AND `post`.`delete_time` = 0 AND ( `post`.`create_time` >= 0 ) AND ( `category_post`.`category_id` = '2' ) AND ( `post`.`published_time` > 0 and `post`.`published_time` < 1733589785 ) GROUP BY `post`.`id` ORDER BY `post`.`published_time` DESC LIMIT 40,10 [ RunTime:0.007758s ]
- [ EXPLAIN : array (
'id' => 1,
'select_type' => 'SIMPLE',
'table' => 'post',
'partitions' => NULL,
'type' => 'range',
'possible_keys' => 'PRIMARY,type_status_date,parent_id,user_id,create_time',
'key' => 'type_status_date',
'key_len' => '6',
'ref' => NULL,
'rows' => 123,
'filtered' => 1.110888957977295,
'extra' => 'Using index condition; Using where; Using temporary; Using filesort',
) ]
0.052055s