Page Time: 0.1884s

Memory: 3.3366 MB (Peak: 7.2008 MB)

Queries (20, time: 0.0110s, 5.8%)

  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.000807
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLExf_data_registryALLPRIMARY   33Using where
  2. SELECT session_data
    FROM xf_session
    WHERE session_id = ?
    	AND expiry_date >= ?
    Params: 5e976dc38c861046e2d978e2cb03dc47, 1716197628
    Run Time: 0.000742
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLExf_sessionconstPRIMARY,expiry_datePRIMARY34const1 
  3. SELECT cache_value
    FROM xf_permission_combination
    WHERE permission_combination_id = ?
    Params: 1
    Run Time: 0.000167
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLExf_permission_combinationconstPRIMARYPRIMARY4const1 
  4.                 			                  SELECT user_point.*
                                                    
                                                    FROM xf_user_point AS user_point
                                                    
                                            WHERE 1=1
    Run Time: 0.000487
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLEuser_pointALL    66 
  5. SELECT
    	user.*,
    	user_profile.*,
    	user_privacy.*,
    	news_feed.*
    FROM xf_news_feed AS news_feed FORCE INDEX (event_date)
    INNER JOIN xf_user AS user ON
    	(user.user_id = news_feed.user_id)
    INNER JOIN xf_user_profile AS user_profile ON
    	(user_profile.user_id = user.user_id)
    LEFT JOIN xf_user_follow AS user_follow ON
    	(user_follow.user_id = user.user_id
    	AND user_follow.follow_user_id = 0)
    INNER JOIN xf_user_privacy AS user_privacy ON
    	(user_privacy.user_id = user.user_id
    		
    			AND (user.user_id = 0
    				OR (
    					user_privacy.allow_receive_news_feed <> 'none'
    					AND IF(user_privacy.allow_receive_news_feed = 'members', 0, 1)
    					AND IF(user_privacy.allow_receive_news_feed = 'followed', user_follow.user_id IS NOT NULL, 1)
    				)
    			)
    		
    	)
    WHERE (user.user_state IN ('valid', 'email_confirm_edit')) AND (user.is_banned = 0)
    ORDER BY news_feed.event_date DESC
     LIMIT 15
    Run Time: 0.000826
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLEnews_feedALL    73Using temporary; Using filesort
    SIMPLEusereq_refPRIMARY,user_statePRIMARY4diendan_sach.news_feed.user_id1Using where
    SIMPLEuser_followrangePRIMARY,follow_user_idfollow_user_id4 1Using where; Using index; Using join buffer (flat, BNL join)
    SIMPLEuser_privacyeq_refPRIMARYPRIMARY4diendan_sach.news_feed.user_id1Using where
    SIMPLEuser_profileeq_refPRIMARYPRIMARY4diendan_sach.news_feed.user_id1 
  6. SELECT
    	post.*
    	,
    		thread.*, thread.user_id AS thread_user_id, thread.username AS thread_username,
    		thread.post_date AS thread_post_date,
    		post.user_id, post.username, post.post_date,
    		node.title AS node_title, node.node_name,
    	permission.cache_value AS node_permission_cache
    FROM xf_post AS post
    		INNER JOIN xf_thread AS thread ON
    			(thread.thread_id = post.thread_id)
    		INNER JOIN xf_node AS node ON
    			(node.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 post.post_id IN (4433)
    Run Time: 0.000499
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLEpostconstPRIMARY,thread_id_post_date,thread_id_positionPRIMARY4const1 
    SIMPLEthreadconstPRIMARY,node_id_last_post_date,node_id_sticky_state_last_postPRIMARY4const1 
    SIMPLEnodeconstPRIMARYPRIMARY4const1 
    SIMPLEpermissionconstPRIMARYPRIMARY35const,const,const1 
  7. SELECT thread.*
    	,
    		node.title AS node_title, node.node_name,
    		post.message, post.attach_count,
    	permission.cache_value AS node_permission_cache
    FROM xf_thread AS thread
    		LEFT JOIN xf_node AS node ON
    			(node.node_id = thread.node_id)
    		LEFT JOIN xf_post AS post ON
    			(post.post_id = thread.first_post_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.thread_id IN (3100, 3099, 3098, 3097, 3096, 3095, 3094, 3093, 3092, 3091, 3090, 3089, 3088)
    Run Time: 0.000340
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLEthreadrangePRIMARYPRIMARY4 13Using where
    SIMPLEnodeeq_refPRIMARYPRIMARY4diendan_sach.thread.node_id1 
    SIMPLEposteq_refPRIMARYPRIMARY4diendan_sach.thread.first_post_id1 
    SIMPLEpermissioneq_refPRIMARYPRIMARY35const,const,diendan_sach.thread.node_id1Using where
  8. SELECT attachment.*,
    	data.filename, data.file_size, data.file_hash, data.file_path, data.width, data.height, data.thumbnail_width, data.thumbnail_height
    FROM xf_attachment AS attachment
    INNER JOIN xf_attachment_data AS data ON
    	(data.data_id = attachment.data_id)
    WHERE attachment.content_type = ?
    	AND attachment.content_id IN (4431)
    ORDER BY attachment.content_id, attachment.attach_date
    Params: post
    Run Time: 0.000269
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLEattachmentrefcontent_type_id_datecontent_type_id_date31const,const1Using index condition; Using where
    SIMPLEdataeq_refPRIMARYPRIMARY4diendan_sach.attachment.data_id1 
  9. SELECT profile_post.*
    	,
    		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
    FROM xf_profile_post AS profile_post
    
    		LEFT JOIN xf_user AS receiving_user ON
    			(receiving_user.user_id = profile_post.profile_user_id)
    WHERE profile_post.profile_post_id IN(1036)
    Run Time: 0.000355
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLEprofile_postconstPRIMARYPRIMARY4const1 
    SIMPLEreceiving_userconstPRIMARYPRIMARY4const1 
  10. SELECT user.*
    	,
    	user_privacy.*,
    	0 AS following_0
    FROM xf_user AS user
    
    	LEFT JOIN xf_user_privacy AS user_privacy ON
    		(user_privacy.user_id = user.user_id)
    WHERE user.user_id IN (2)
    ORDER BY user.username
    Run Time: 0.000405
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLEuserconstPRIMARYPRIMARY4const1 
    SIMPLEuser_privacyconstPRIMARYPRIMARY4const1 
  11. 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 > 1716196728)
    ORDER BY session_activity.view_date DESC
    Run Time: 0.003118
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLEsession_activityrangeview_dateview_date4 153Using where
    SIMPLEusereq_refPRIMARYPRIMARY4diendan_sach.session_activity.user_id1 
  12. UPDATE `xf_session` SET `expiry_date` = ? WHERE (session_id = '5e976dc38c861046e2d978e2cb03dc47')
    Params: 1716201228
    Run Time: 0.001181
  13. 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_RecentActivity, Index, valid, , 1716197628,
    Run Time: 0.000258
  14. SELECT title, template_compiled
    FROM xf_template_compiled
    WHERE title IN ('page_nav', 'news_feed_item_post_insert', 'news_feed_item_thread_insert', 'news_feed_page_global', 'PAGE_CONTAINER')
    	AND style_id = ?
    	AND language_id = ?
    Params: 2, 1
    Run Time: 0.000402
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLExf_template_compiledrangePRIMARYPRIMARY60 5Using where
  15.                 			                  SELECT adv.*
                                                    
                                                    FROM xf_advertisement AS adv
                                                    
                                            WHERE (adv.active = 1) AND (adv.positive = 1)
    Run Time: 0.000227
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLEadvALL    1Using where
  16. 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.000129
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLExf_template_compiledconstPRIMARYPRIMARY60const,const,const1 
  17.                 			                  SELECT adv.*
                                                    
                                                    FROM xf_advertisement AS adv
                                                    
                                            WHERE (adv.active = 1) AND (adv.positive = 2)
    Run Time: 0.000215
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLEadvALL    1Using where
  18. 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.000195
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLExf_template_compiledconstPRIMARYPRIMARY60const,const,const1 
  19.                 			                  SELECT adv.*
                                                    
                                                    FROM xf_advertisement AS adv
                                                    
                                            WHERE (adv.active = 1) AND (adv.positive = 3)
    Run Time: 0.000224
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLEadvALL    1Using where
  20. 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.000159
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLExf_template_compiledconstPRIMARYPRIMARY60const,const,const1 

Included Files (91, XenForo Classes: 62)

  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/RouteMatch.php
  38. library/XenForo/Route/Prefix/RecentActivity.php
  39. library/XenForo/ControllerPublic/RecentActivity.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/Model/NewsFeed.php
  56. library/XenForo/NewsFeedHandler/DiscussionMessage/Post.php
  57. library/XenForo/NewsFeedHandler/DiscussionMessage.php
  58. library/XenForo/NewsFeedHandler/Abstract.php
  59. library/XenForo/Model/Post.php
  60. library/XenForo/Model/Thread.php
  61. library/VietXfAdvStats/XenForo/Model/Thread.php
  62. library/XenForo/NewsFeedHandler/Discussion/Thread.php
  63. library/XenForo/NewsFeedHandler/Discussion.php
  64. library/XenForo/Model/Attachment.php
  65. library/XenForo/Route/Prefix/Attachments.php
  66. library/XenForo/NewsFeedHandler/DiscussionMessage/ProfilePost.php
  67. library/XenForo/Model/ProfilePost.php
  68. library/XenForo/Model/Forum.php
  69. library/XenForo/Model/UserProfile.php
  70. library/XenForo/Helper/String.php
  71. library/XenForo/Model/Session.php
  72. library/XenForo/ControllerResponse/View.php
  73. library/XenForo/ControllerResponse/Abstract.php
  74. library/XenForo/ViewRenderer/HtmlPublic.php
  75. library/XenForo/ViewRenderer/Abstract.php
  76. library/XenForo/Template/Public.php
  77. library/XenForo/Template/Abstract.php
  78. library/XenForo/ViewPublic/NewsFeed/View.php
  79. library/XenForo/ViewPublic/Base.php
  80. library/XenForo/View.php
  81. library/XenForo/ViewPublic/Helper/NewsFeed.php
  82. library/VietXfAdvStats/Model/GetUserGroup.php
  83. library/XenForo/Route/Prefix/Members.php
  84. library/XenForo/Route/Prefix/Posts.php
  85. library/XenForo/Route/Prefix/Threads.php
  86. library/XenForo/Route/Prefix/Forums.php
  87. library/XenForo/Debug.php
  88. library/TaiLieu/Advertisement/Listener.php
  89. library/VietXfAdvStats/Option.php
  90. library/TaiLieu/Advertisement/Model/Advertisement.php
  91. library/XenForo/ViewRenderer/Json.php