基本
文件
流程
错误
SQL
调试
- 请求信息 : 2024-12-22 00:24:38 HTTP/1.0 GET : http://127.0.0.1:8081/portal/article/index/id/25/cid/7.html
- 运行时间 : 0.049603s [ 吞吐率:20.16req/s ] 内存消耗:4,959.84kb 文件加载:113
- 查询信息 : 15 queries 1 writes
- 缓存信息 : 7 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',
'accept' => '*/*',
'user-agent' => 'Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)',
'accept-encoding' => 'gzip, br, zstd, deflate',
)
- [ PARAM ] array (
'id' => '25',
'cid' => '7',
)
- [ 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/article.html [ array (
0 => 'site_info',
1 => 'category',
2 => 'article',
3 => 'prev_article',
4 => 'next_article',
5 => 'theme_vars',
6 => 'theme_widgets',
) ]
- [ DB ] INIT mysql
- [ DB ] CONNECT:[ UseTime:0.000818s ] mysql:host=mysql;port=3306;dbname=yunlianjiaotong;charset=utf8mb4
- [ SQL ] SHOW COLUMNS FROM `cmf_hook` [ RunTime:0.000514s ]
- [ SQL ] SELECT `hook` FROM `cmf_hook` WHERE `type` = 1 OR ( `type` = 3 AND ( `app` = '' or `app` = 'cmf' ) ) [ RunTime:0.000376s ]
- [ 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.000369s ]
- [ 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.000380s ]
- [ 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_post` [ RunTime:0.000626s ]
- [ SQL ] SELECT `post`.* FROM `cmf_portal_post` `post` INNER JOIN `cmf_portal_category_post` `relation` ON `post`.`id`=`relation`.`post_id` WHERE `post`.`post_type` = 1 AND `post`.`post_status` = 1 AND `post`.`delete_time` = 0 AND `relation`.`category_id` = 7 AND `relation`.`post_id` = 25 AND ( `post`.`published_time` < 1734798278 and `post`.`published_time` > 0 ) LIMIT 1 [ RunTime:0.000478s ]
- [ EXPLAIN : array (
'id' => 1,
'select_type' => 'SIMPLE',
'table' => 'post',
'partitions' => NULL,
'type' => 'const',
'possible_keys' => 'PRIMARY,type_status_date',
'key' => 'PRIMARY',
'key_len' => '8',
'ref' => 'const',
'rows' => 1,
'filtered' => 100.0,
'extra' => NULL,
) ]
- [ SQL ] SELECT `post`.* FROM `cmf_portal_post` `post` INNER JOIN `cmf_portal_category_post` `relation` ON `post`.`id`=`relation`.`post_id` WHERE `post`.`post_type` = 1 AND `post`.`post_status` = 1 AND `post`.`delete_time` = 0 AND `relation`.`category_id` = 7 AND `relation`.`post_id` < 25 AND ( `post`.`published_time` < 1734798278 and `post`.`published_time` > 0 ) ORDER BY `id` DESC LIMIT 1 [ RunTime:0.000577s ]
- [ EXPLAIN : array (
'id' => 1,
'select_type' => 'SIMPLE',
'table' => 'relation',
'partitions' => NULL,
'type' => 'ref',
'possible_keys' => 'term_taxonomy_id',
'key' => 'term_taxonomy_id',
'key_len' => '8',
'ref' => 'const',
'rows' => 4,
'filtered' => 33.32999801635742,
'extra' => 'Using index condition; Using where; Using temporary; Using filesort',
) ]
- [ SQL ] SELECT `post`.* FROM `cmf_portal_post` `post` INNER JOIN `cmf_portal_category_post` `relation` ON `post`.`id`=`relation`.`post_id` WHERE `post`.`post_type` = 1 AND `post`.`post_status` = 1 AND `post`.`delete_time` = 0 AND `relation`.`category_id` = 7 AND `relation`.`post_id` > 25 AND ( `post`.`published_time` < 1734798278 and `post`.`published_time` > 0 ) ORDER BY `id` ASC LIMIT 1 [ RunTime:0.000618s ]
- [ EXPLAIN : array (
'id' => 1,
'select_type' => 'SIMPLE',
'table' => 'relation',
'partitions' => NULL,
'type' => 'ref',
'possible_keys' => 'term_taxonomy_id',
'key' => 'term_taxonomy_id',
'key_len' => '8',
'ref' => 'const',
'rows' => 4,
'filtered' => 33.32999801635742,
'extra' => 'Using index condition; Using where; Using temporary; Using filesort',
) ]
- [ SQL ] SHOW COLUMNS FROM `cmf_portal_category` [ RunTime:0.000637s ]
- [ SQL ] SELECT * FROM `cmf_portal_category` WHERE `id` = 7 AND `status` = 1 LIMIT 1 [ RunTime:0.000341s ]
- [ 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 ] UPDATE `cmf_portal_post` SET `post_hits` = `post_hits` + 1 WHERE `id` = 25 [ RunTime:0.005365s ]
- [ SQL ] SHOW COLUMNS FROM `cmf_theme_file` [ RunTime:0.000484s ]
- [ SQL ] SELECT `more` FROM `cmf_theme_file` WHERE `theme` = 'yunlianjiaotong' AND ( `is_public` = 1 OR `file` = 'portal/article' ) [ RunTime:0.000264s ]
- [ 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.000555s ] mysql:host=mysql;port=3306;dbname=yunlianjiaotong;charset=utf8mb4
- [ SQL ] SELECT * FROM `cmf_portal_category` WHERE `parent_id` = 1 [ RunTime:0.000286s ]
- [ 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_option` [ RunTime:0.000459s ]
- [ SQL ] SELECT `option_value` FROM `cmf_option` WHERE `option_name` = 'storage' LIMIT 1 [ RunTime:0.000239s ]
- [ EXPLAIN : array (
'id' => 1,
'select_type' => 'SIMPLE',
'table' => NULL,
'partitions' => NULL,
'type' => NULL,
'possible_keys' => NULL,
'key' => NULL,
'key_len' => NULL,
'ref' => NULL,
'rows' => NULL,
'filtered' => NULL,
'extra' => 'no matching row in const table',
) ]
0.050130s