Page Time: 0.1289s

Memory: 4.3208 MB (Peak: 5.3290 MB)

Queries (32, time: 0.0263s, 20.4%)

  1. SELECT data_key, data_value
    FROM xf_data_registry
    WHERE data_key IN ('options', 'languages', 'contentTypes', 'codeEventListeners', 'deferredRun', 'simpleCache', 'addOns', 'defaultStyleProperties', 'routeFiltersIn', 'routeFiltersOut', 'routesPublic', 'nodeTypes', 'bannedIps', 'discouragedIps', 'styles', 'displayStyles', 'userBanners', 'smilies', 'bbCode', 'threadPrefixes', 'userTitleLadder', 'reportCounts', 'moderationCounts', 'userModerationCounts', 'notices', 'userFieldsInfo')
    Run Time: 0.001317
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLExf_data_registryALLPRIMARY   33Using where
  2. SELECT cache_value
    FROM xf_permission_combination
    WHERE permission_combination_id = ?
    Params: 1
    Run Time: 0.000452
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLExf_permission_combinationconstPRIMARYPRIMARY4const1 
  3.                 			                  SELECT user_point.*
                                                    
                                                    FROM xf_user_point AS user_point
                                                    
                                            WHERE 1=1
    Run Time: 0.000231
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLEuser_pointALL    2 
  4. SELECT profile_post.*
    	,
    	posting_user.*,
    	IF(posting_user.username IS NULL, profile_post.username, posting_user.username) AS username,
    	receiving_user.username
    		AS profile_username,
    	receiving_user.gender
    		AS profile_gender,
    	receiving_user.user_state
    		AS profile_user_state,
    	receiving_user.user_group_id
    		AS profile_user_group_id,
    	receiving_user.secondary_group_ids
    		AS profile_secondary_group_ids,
    	receiving_user.display_style_group_id
    		AS profile_display_style_group_id,
    	receiving_user.is_banned
    		AS profile_is_banned,
    	receiving_user.is_admin
    		AS profile_is_admin,
    	receiving_user.is_moderator
    		AS profile_is_moderator,
    	receiving_user.avatar_date
    		AS profile_avatar_date,
    	receiving_user.gravatar
    		AS profile_gravatar,
    	receiving_user.warning_points
    		AS profile_warning_points,
    	receiving_user.permission_combination_id
    		AS profile_permission_combination_id,
    	receiving_user_privacy.allow_view_profile
    		AS profile_allow_view_profile,
    	receiving_user_privacy.allow_post_profile
    		AS profile_allow_post_profile,
    	receiving_user_privacy.allow_send_personal_conversation
    		AS profile_allow_send_personal_conversation,
    	receiving_user_privacy.allow_view_identities
    		AS profile_allow_view_identities,
    	receiving_user_privacy.allow_receive_news_feed
    		AS profile_allow_allow_receive_news_feed,
    	IF (receiving_user_follow.follow_user_id, 1, 0)
    		AS following_0
    FROM xf_profile_post AS profile_post
    
    	LEFT JOIN xf_user AS posting_user ON
    		(posting_user.user_id = profile_post.user_id)
    	LEFT JOIN xf_user AS receiving_user ON
    		(receiving_user.user_id = profile_post.profile_user_id)
    	LEFT JOIN xf_user_privacy AS receiving_user_privacy ON
    		(receiving_user_privacy.user_id = profile_post.profile_user_id)
    	LEFT JOIN xf_user_follow AS receiving_user_follow ON
    		(receiving_user_follow.user_id = profile_post.profile_user_id AND follow_user_id = 0)
    WHERE (profile_post.message_state IN ('visible'))
    ORDER BY profile_post.post_date DESC
     LIMIT 10
    Run Time: 0.002640
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLEprofile_postALL    16Using where; Using filesort
    SIMPLEposting_usereq_refPRIMARYPRIMARY4diendan_sach.profile_post.user_id1 
    SIMPLEreceiving_usereq_refPRIMARYPRIMARY4diendan_sach.profile_post.profile_user_id1 
    SIMPLEreceiving_user_privacyeq_refPRIMARYPRIMARY4diendan_sach.profile_post.profile_user_id1 
    SIMPLEreceiving_user_followeq_refPRIMARY,follow_user_idPRIMARY8diendan_sach.profile_post.profile_user_id,const1Using index
  5. SELECT thread.*
    	,
    	last_post_user.gender AS last_post_gender,
    	last_post_user.avatar_date AS last_post_avatar_date,
    	last_post_user.gravatar AS last_post_gravatar,
    	IF(last_post_user.username IS NULL, thread.last_post_username, last_post_user.username) AS last_post_username,
    	node.title AS node_title, node.node_name,
    	forum.*,
    	forum.last_post_id AS forum_last_post_id,
    	forum.last_post_date AS forum_last_post_date,
    	forum.last_post_user_id AS forum_last_post_user_id,
    	forum.last_post_username AS forum_last_post_username,
    	forum.last_thread_title AS forum_last_thread_title,
    	thread.last_post_id,
    	thread.last_post_date,
    	thread.last_post_user_id,
    	thread.last_post_username,
    	NULL AS thread_read_date,
    permission.cache_value AS node_permission_cache
    FROM xf_thread AS thread FORCE INDEX (last_post_date)
    
    	LEFT JOIN xf_user AS last_post_user ON
    		(last_post_user.user_id = thread.last_post_user_id)
    	LEFT JOIN xf_node AS node ON
    		(node.node_id = thread.node_id)
    	LEFT JOIN xf_forum AS forum ON
    		(forum.node_id = thread.node_id)
    LEFT JOIN xf_permission_cache_content AS permission
    	ON (permission.permission_combination_id = 1
    		AND permission.content_type = 'node'
    		AND permission.content_id = thread.node_id)
    WHERE (thread.discussion_type <> 'redirect') AND (thread.discussion_state IN ('visible')) AND (thread.last_post_date > 1640291840) AND (forum.find_new = 1)
    ORDER BY thread.last_post_date DESC
     LIMIT 10
    Run Time: 0.001584
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLEthreadrangelast_post_datelast_post_date4 5Using index condition; Using where
    SIMPLEforumeq_refPRIMARYPRIMARY4diendan_sach.thread.node_id1Using where
    SIMPLEpermissioneq_refPRIMARYPRIMARY35const,const,diendan_sach.thread.node_id1Using where
    SIMPLElast_post_usereq_refPRIMARYPRIMARY4diendan_sach.thread.last_post_user_id1 
    SIMPLEnodeeq_refPRIMARYPRIMARY4diendan_sach.thread.node_id1 
  6. SELECT *
    FROM xf_node
    WHERE display_in_list = 1
    ORDER BY lft ASC
    Run Time: 0.000775
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLExf_nodeALLdisplay_in_list   40Using where; Using filesort
  7. SELECT content_id, cache_value
    FROM xf_permission_cache_content
    WHERE permission_combination_id = ?
    	AND content_type = 'node'
    Params: 1
    Run Time: 0.000646
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLExf_permission_cache_contentrefPRIMARYPRIMARY31const,const39Using where
  8. SELECT forum.*
    	,
    		NULL AS forum_read_date
    FROM xf_forum AS forum
    INNER JOIN xf_node AS node ON (node.node_id = forum.node_id)
    
    WHERE forum.node_id IN (35, 5, 38, 39, 40, 43, 41, 6, 8, 29, 30, 31, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 44, 19, 45, 46, 47, 20, 21, 22, 23, 24, 25, 26, 27, 28, 37, 42, 36)
    Run Time: 0.001053
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLEforumALLPRIMARY   23Using where
    SIMPLEnodeeq_refPRIMARYPRIMARY4diendan_sach.forum.node_id1Using index
  9. SELECT session_activity.*
    	,
    	user.*
    FROM xf_session_activity AS session_activity
    
    	LEFT JOIN xf_user AS user ON
    		(user.user_id = session_activity.user_id)
    WHERE (session_activity.view_date > 1642882940)
    ORDER BY session_activity.view_date DESC
    Run Time: 0.001170
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLEsession_activityrangeview_dateview_date4 6Using where
    SIMPLEusereq_refPRIMARYPRIMARY4diendan_sach.session_activity.user_id1 
  10. SELECT data_value
    FROM xf_data_registry
    WHERE data_key = ?
    Params: boardTotals
    Run Time: 0.000193
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLExf_data_registryconstPRIMARYPRIMARY27const1 
  11. INSERT INTO `xf_session` (`session_id`, `session_data`, `expiry_date`) VALUES (?, ?, ?)
    Params: 0f1407f0a7b213cd5171b0a9c21baea2, , 1642887440
    Run Time: 0.000713
  12. INSERT INTO xf_session_activity
    	(user_id, unique_key, ip, controller_name, controller_action, view_state, params, view_date, robot_key)
    VALUES
    	(?, ?, ?, ?, ?, ?, ?, ?, ?)
    ON DUPLICATE KEY UPDATE
    	ip = VALUES(ip),
    	controller_name = VALUES(controller_name),
    	controller_action = VALUES(controller_action),
    	view_state = VALUES(view_state),
    	params = VALUES(params),
    	view_date = VALUES(view_date),
    	robot_key = VALUES(robot_key)
    Params: 0, , , XenForo_ControllerPublic_Forum, Index, valid, node_name=, 1642883840,
    Run Time: 0.000238
  13. SELECT title, template_compiled
    FROM xf_template_compiled
    WHERE title IN ('page_nav', 'node_forum_level_n', 'node_forum_level_2', 'node_forum_level_1', 'forum_list', 'VietXfAdvStats_wrapper', 'PAGE_CONTAINER')
    	AND style_id = ?
    	AND language_id = ?
    Params: 2, 1
    Run Time: 0.000856
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLExf_template_compiledrangePRIMARYPRIMARY60 7Using where
  14.                 			                  SELECT adv.*
                                                    
                                                    FROM xf_advertisement AS adv
                                                    
                                            WHERE (adv.active = 1) AND (adv.positive = 1)
    Run Time: 0.000360
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLEadvALL    1Using where
  15. SELECT title, template_compiled
    FROM xf_template_compiled
    WHERE title IN ('tailieu_advertisement_top')
    	AND style_id = ?
    	AND language_id = ?
    Params: 2, 1
    Run Time: 0.000225
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLExf_template_compiledconstPRIMARYPRIMARY60const,const,const1 
  16.                 			                  SELECT adv.*
                                                    
                                                    FROM xf_advertisement AS adv
                                                    
                                            WHERE (adv.active = 1) AND (adv.positive = 2)
    Run Time: 0.000222
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLEadvALL    1Using where
  17. SELECT title, template_compiled
    FROM xf_template_compiled
    WHERE title IN ('tailieu_advertisement_sidebar')
    	AND style_id = ?
    	AND language_id = ?
    Params: 2, 1
    Run Time: 0.000181
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLExf_template_compiledconstPRIMARYPRIMARY60const,const,const1 
  18.                 			                  SELECT adv.*
                                                    
                                                    FROM xf_advertisement AS adv
                                                    
                                            WHERE (adv.active = 1) AND (adv.positive = 3)
    Run Time: 0.000221
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLEadvALL    1Using where
  19. SELECT title, template_compiled
    FROM xf_template_compiled
    WHERE title IN ('tailieu_advertisement_bottom')
    	AND style_id = ?
    	AND language_id = ?
    Params: 2, 1
    Run Time: 0.000179
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLExf_template_compiledconstPRIMARYPRIMARY60const,const,const1 
  20. SELECT user.*
    	
    FROM xf_user AS user
    
    WHERE user.user_state = 'valid' AND user.is_banned = 0
    ORDER BY user.register_date DESC
     LIMIT 10
    Run Time: 0.000747
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLEuserindexuser_stateregister_date4 45Using where
  21. SELECT *
    FROM xf_node
    
    ORDER BY lft ASC
    Run Time: 0.000524
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLExf_nodeALL    40Using filesort
  22. SELECT content_id, cache_value
    FROM xf_permission_cache_content
    WHERE permission_combination_id = ?
    	AND content_type = 'node'
    Params: 1
    Run Time: 0.000431
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLExf_permission_cache_contentrefPRIMARYPRIMARY31const,const39Using where
  23. SELECT thread.*
    	,
    	NULL AS thread_read_date,
    node.node_id AS forum_id, node.title AS forum_title,
    	user.*
    FROM xf_thread AS thread 
    
    INNER JOIN xf_node AS node ON
    	(node.node_id = thread.node_id)
    INNER JOIN xf_forum AS forum ON
    	(forum.node_id = thread.node_id)
    	LEFT JOIN xf_user AS user ON
    		(user.user_id = thread.last_post_user_id)
    WHERE (1=1) AND (thread.node_id IN ('35', '5', '38', '39', '40', '43', '41', '6', '8', '29', '30', '31', '9', '10', '11', '12', '13', '14', '15', '16', '17', '18', '44', '19', '45', '46', '47', '20', '21', '22', '23', '24', '25', '26', '27', '28', '37', '42', '36')) AND ((thread.discussion_type != 'redirect' AND thread.discussion_state != 'deleted' AND thread.discussion_state != 'moderated'))
    ORDER BY thread.last_post_date DESC
     LIMIT 10
    Run Time: 0.008179
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLEforumindexPRIMARYPRIMARY4 23Using where; Using index; Using temporary; Using filesort
    SIMPLEnodeeq_refPRIMARYPRIMARY4diendan_sach.forum.node_id1 
    SIMPLEthreadrefnode_id_last_post_date,node_id_sticky_state_last_postnode_id_last_post_date4diendan_sach.forum.node_id7Using where
    SIMPLEusereq_refPRIMARYPRIMARY4diendan_sach.thread.last_post_user_id1 
  24. SELECT cache_value
    FROM xf_permission_cache_content
    WHERE permission_combination_id = ?
    	AND content_type = ?
    	AND content_id = ?
    Params: 1, node, 36
    Run Time: 0.000920
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLExf_permission_cache_contentconstPRIMARYPRIMARY35const,const,const1 
  25. SELECT cache_value
    FROM xf_permission_cache_content
    WHERE permission_combination_id = ?
    	AND content_type = ?
    	AND content_id = ?
    Params: 1, node, 19
    Run Time: 0.000266
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLExf_permission_cache_contentconstPRIMARYPRIMARY35const,const,const1 
  26. SELECT cache_value
    FROM xf_permission_cache_content
    WHERE permission_combination_id = ?
    	AND content_type = ?
    	AND content_id = ?
    Params: 1, node, 6
    Run Time: 0.000328
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLExf_permission_cache_contentconstPRIMARYPRIMARY35const,const,const1 
  27. SELECT cache_value
    FROM xf_permission_cache_content
    WHERE permission_combination_id = ?
    	AND content_type = ?
    	AND content_id = ?
    Params: 1, node, 5
    Run Time: 0.000278
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLExf_permission_cache_contentconstPRIMARYPRIMARY35const,const,const1 
  28. SELECT cache_value
    FROM xf_permission_cache_content
    WHERE permission_combination_id = ?
    	AND content_type = ?
    	AND content_id = ?
    Params: 1, node, 35
    Run Time: 0.000280
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLExf_permission_cache_contentconstPRIMARYPRIMARY35const,const,const1 
  29. SELECT cache_value
    FROM xf_permission_cache_content
    WHERE permission_combination_id = ?
    	AND content_type = ?
    	AND content_id = ?
    Params: 1, node, 41
    Run Time: 0.000236
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLExf_permission_cache_contentconstPRIMARYPRIMARY35const,const,const1 
  30. SELECT cache_value
    FROM xf_permission_cache_content
    WHERE permission_combination_id = ?
    	AND content_type = ?
    	AND content_id = ?
    Params: 1, node, 40
    Run Time: 0.000205
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLExf_permission_cache_contentconstPRIMARYPRIMARY35const,const,const1 
  31. SELECT title, phrase_text
    FROM xf_phrase_compiled
    WHERE language_id = ?
    	AND title IN ('VietXfAdvStats_section_users_new', 'VietXfAdvStats_section_users_top_posters', 'VietXfAdvStats_section_users_top_trophy_points', 'VietXfAdvStats_section_users_top_liked', 'VietXfAdvStats_section_threads_recent', 'VietXfAdvStats_section_threads_latest', 'VietXfAdvStats_section_threads_hot')
    Params: 1
    Run Time: 0.000306
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLExf_phrase_compiledrangePRIMARYPRIMARY106 7Using where
  32. SELECT title, template_compiled
    FROM xf_template_compiled
    WHERE title IN ('VietxfAdvStats_users_new', 'VietXfAdvStats_users', 'VietxfAdvStats_threads_recent', 'VietXfAdvStats_threads')
    	AND style_id = ?
    	AND language_id = ?
    Params: 2, 1
    Run Time: 0.000308
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLExf_template_compiledrangePRIMARYPRIMARY60 4Using where

Included Files (92, XenForo Classes: 61)

  1. index.php
  2. library/XenForo/Autoloader.php
  3. library/XenForo/Application.php
  4. library/Zend/Registry.php
  5. library/Lgpl/utf8.php
  6. library/Zend/Config.php
  7. library/config.php
  8. library/XenForo/FrontController.php
  9. library/XenForo/Dependencies/Public.php
  10. library/XenForo/Dependencies/Abstract.php
  11. library/Zend/Controller/Request/Http.php
  12. library/Zend/Controller/Request/Abstract.php
  13. library/Zend/Uri.php
  14. library/Zend/Controller/Response/Http.php
  15. library/Zend/Controller/Response/Abstract.php
  16. library/XenForo/Model/DataRegistry.php
  17. library/XenForo/Model.php
  18. library/Zend/Db.php
  19. library/Zend/Db/Adapter/Mysqli.php
  20. library/Zend/Db/Adapter/Abstract.php
  21. library/Zend/Db/Select.php
  22. library/Zend/Db/Expr.php
  23. library/Zend/Db/Profiler.php
  24. library/Zend/Db/Statement/Mysqli.php
  25. library/Zend/Db/Statement.php
  26. library/Zend/Db/Statement/Interface.php
  27. library/Zend/Db/Profiler/Query.php
  28. library/XenForo/CodeEvent.php
  29. library/XenForo/Options.php
  30. library/XenForo/Link.php
  31. library/XenForo/Template/Helper/Core.php
  32. library/XenForo/Router.php
  33. library/XenForo/Route/Filter.php
  34. library/XenForo/Route/Interface.php
  35. library/XenForo/Route/ResponseSuffix.php
  36. library/XenForo/Route/Prefix.php
  37. library/XenForo/Route/Prefix/Index.php
  38. library/XenForo/RouteMatch.php
  39. library/XenForo/ControllerPublic/Index.php
  40. library/XenForo/ControllerPublic/Abstract.php
  41. library/XenForo/Controller.php
  42. library/XenForo/Input.php
  43. library/XenForo/Session.php
  44. library/XenForo/Helper/Ip.php
  45. library/XenForo/Visitor.php
  46. library/XenForo/Model/User.php
  47. library/VietXfAdvStats/Listener.php
  48. library/VietXfAdvStats/XenForo/Model/User.php
  49. library/XenForo/Permission.php
  50. library/XenForo/Helper/Php.php
  51. library/XenForo/Phrase.php
  52. library/XenForo/Locale.php
  53. library/TaiLieu/CustomPost/Listener.php
  54. library/TaiLieu/CustomPost/Model/UserPoint.php
  55. library/XenForo/ControllerResponse/ReroutePath.php
  56. library/XenForo/ControllerResponse/Abstract.php
  57. library/XenForo/Route/Prefix/Forums.php
  58. library/XenForo/ControllerPublic/Forum.php
  59. library/TaiLieu/CustomPost/ControllerPublic/Forum.php
  60. library/XenForo/Model/ProfilePost.php
  61. library/XenForo/Model/UserProfile.php
  62. library/XenForo/Model/Thread.php
  63. library/VietXfAdvStats/XenForo/Model/Thread.php
  64. library/XenForo/Model/Forum.php
  65. library/XenForo/Helper/String.php
  66. library/XenForo/Model/Node.php
  67. library/XenForo/NodeHandler/Forum.php
  68. library/XenForo/NodeHandler/Abstract.php
  69. library/XenForo/Model/Session.php
  70. library/XenForo/ControllerResponse/View.php
  71. library/XenForo/Helper/Cookie.php
  72. library/XenForo/ViewRenderer/HtmlPublic.php
  73. library/XenForo/ViewRenderer/Abstract.php
  74. library/XenForo/Template/Public.php
  75. library/XenForo/Template/Abstract.php
  76. library/XenForo/ViewPublic/Forum/List.php
  77. library/XenForo/ViewPublic/Base.php
  78. library/XenForo/View.php
  79. library/XenForo/ViewPublic/Helper/Node.php
  80. library/VietXfAdvStats/Model/GetUserGroup.php
  81. library/XenForo/Route/Prefix/Members.php
  82. library/TaiLieu/Advertisement/Listener.php
  83. library/XenForo/Route/Prefix/Posts.php
  84. library/VietXfAdvStats/Option.php
  85. library/XenForo/Model/Avatar.php
  86. library/XenForo/Route/Prefix/ProfilePosts.php
  87. library/XenForo/Debug.php
  88. library/TaiLieu/Advertisement/Model/Advertisement.php
  89. library/XenForo/ViewRenderer/Json.php
  90. library/VietXfAdvStats/Renderer.php
  91. library/XenForo/Model/PermissionCache.php
  92. library/XenForo/Route/Prefix/Threads.php