Page Time: 0.0960s

Memory: 10.9117 MB (Peak: 12.1922 MB)

Queries (21, time: 0.0175s, 18.2%)

  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.001427
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLExf_data_registryrangePRIMARYPRIMARY27 26Using where
  2. SELECT data_key, data_value
    FROM xf_data_registry
    WHERE data_key IN ('brListenerClasses', 'brBriviumAddOns')
    Run Time: 0.000206
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLExf_data_registryrangePRIMARYPRIMARY27 2Using where
  3. SELECT *
    FROM xf_brivium_addon
    ORDER BY addon_id
    Run Time: 0.000231
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLExf_brivium_addonindex PRIMARY77 1 
  4. INSERT INTO xf_data_registry
    	(data_key, data_value)
    VALUES
    	(?, ?)
    ON DUPLICATE KEY UPDATE
    	data_value = VALUES(data_value)
    Params: brBriviumAddOns, a:0:{}
    Run Time: 0.000144
  5. SELECT cache_value
    FROM xf_permission_combination
    WHERE permission_combination_id = ?
    Params: 1
    Run Time: 0.000455
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLExf_permission_combinationconstPRIMARYPRIMARY4const1 
  6. SELECT thread.*
    	,
    		user.gender, user.avatar_date, user.gravatar,
    		NULL AS thread_read_date,
    		0 AS thread_reply_banned,
    		0 AS thread_is_watched,
    		'' AS draft_message, NULL AS draft_extra
    FROM xf_thread AS thread
    
    		LEFT JOIN xf_user AS user ON
    			(user.user_id = thread.user_id)
    WHERE thread.thread_id = ?
    Params: 173567
    Run Time: 0.000556
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLEthreadconstPRIMARYPRIMARY4const1 
    SIMPLEuserconstPRIMARYPRIMARY4const1 
  7. SELECT node.*, forum.*
    	,
    	permission.cache_value AS node_permission_cache,
    		NULL AS forum_read_date
    FROM xf_forum AS forum
    INNER JOIN xf_node AS node ON (node.node_id = forum.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 = forum.node_id)
    WHERE node.node_id = ?
    Params: 19
    Run Time: 0.000634
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLEforumconstPRIMARYPRIMARY4const1 
    SIMPLEnodeconstPRIMARYPRIMARY4const1 
    SIMPLEpermissionconstPRIMARYPRIMARY35const,const,const1 
  8. 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,
    		bb_code_parse_cache.parse_tree AS message_parsed, bb_code_parse_cache.cache_version AS message_cache_version,
    		user.*, IF(user.username IS NULL, post.username, user.username) AS username,
    		user_profile.*,
    		user_privacy.*,
    		signature_parse_cache.parse_tree AS signature_parsed, bb_code_parse_cache.cache_version AS signature_cache_version,
    		session_activity.view_date AS last_view_date,
    		0 AS like_date
    FROM xf_post AS post
    
    		INNER JOIN xf_thread AS thread ON
    			(thread.thread_id = post.thread_id)
    		LEFT JOIN xf_bb_code_parse_cache AS bb_code_parse_cache ON
    			(bb_code_parse_cache.content_type = 'post' AND bb_code_parse_cache.content_id = post.post_id)
    		LEFT JOIN xf_user AS user ON
    			(user.user_id = post.user_id)
    		LEFT JOIN xf_user_profile AS user_profile ON
    			(user_profile.user_id = post.user_id)
    		LEFT JOIN xf_user_privacy AS user_privacy ON
    			(user_privacy.user_id = post.user_id)
    		LEFT JOIN xf_bb_code_parse_cache AS signature_parse_cache ON
    			(signature_parse_cache.content_type = 'signature' AND signature_parse_cache.content_id = post.user_id)
    		LEFT JOIN xf_session_activity AS session_activity ON
    			(post.user_id > 0 AND session_activity.user_id = post.user_id AND session_activity.unique_key = CAST(post.user_id AS BINARY))
    WHERE (
    		(post.thread_id = ?  AND (post.position >= 0 AND post.position < 10) )
    		
    		
    	)
    	AND (post.message_state IN ('visible'))
    ORDER BY post.position ASC, post.post_date ASC
    Params: 173567
    Run Time: 0.007735
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLEthreadconstPRIMARYPRIMARY4const1Using filesort
    SIMPLEpostrangethread_id_post_date,thread_id_positionthread_id_position8 9Using index condition; Using where
    SIMPLEbb_code_parse_cacheeq_refcontent_type_idcontent_type_id31const,xenforo.cc.post.post_id1Using where
    SIMPLEusereq_refPRIMARYPRIMARY4xenforo.cc.post.user_id1 
    SIMPLEuser_profileeq_refPRIMARYPRIMARY4xenforo.cc.post.user_id1 
    SIMPLEuser_privacyeq_refPRIMARYPRIMARY4xenforo.cc.post.user_id1 
    SIMPLEsignature_parse_cacheeq_refcontent_type_idcontent_type_id31const,xenforo.cc.post.user_id1Using where
    SIMPLEsession_activityeq_refPRIMARYPRIMARY22xenforo.cc.post.user_id,func1Using where
  9. INSERT  INTO xf_thread_view
    	(thread_id)
    VALUES
    	(?)
    Params: 173567
    Run Time: 0.000096
  10. INSERT INTO `xf_session` (`session_id`, `session_data`, `expiry_date`) VALUES (?, ?, ?)
    Params: 08415474efd127ad5c3fffccd08243f3, , 1715016904
    Run Time: 0.000896
  11. 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_Thread, Index, valid, thread_id=173567, 1715013304,
    Run Time: 0.000117
  12. INSERT INTO xf_bb_code_parse_cache
    	(content_type, content_id, parse_tree, cache_version, cache_date)
    VALUES (?, ?, ?, ?, ?)
    ON DUPLICATE KEY UPDATE parse_tree = VALUES(parse_tree),
    	cache_version = VALUES(cache_version),
    	cache_date = VALUES(cache_date)
    Params: post, 178267, a:9:{i:0;s:30:"$config['externalDataUrl'] = '";i:1;a:4:{s:3:"tag";s:3:"url";s:6:"option";N;s:8:"original";a:2:{i:0;s:5:"[URL]";i:1;s:6:"[/URL]";}s:8:"children";a:1:{i:0;s:28:"http://cdn.domain.com/data';";}}i:2;s:62:" //只是图片的缩略图而已 $config['javaScriptUrl'] = '";i:3;a:4:{s:3:"tag";s:3:"url";s:6:"option";N;s:8:"original";a:2:{i:0;s:5:"[URL]";i:1;s:6:"[/URL]";}s:8:"children";a:1:{i:0;s:26:"http://cdn.domain.com/js';";}}i:4;s:2:" ";i:5;a:4:{s:3:"tag";s:5:"color";s:6:"option";s:7:"#ff0000";s:8:"original";a:2:{i:0;s:15:"[COLOR=#ff0000]";i:1;s:8:"[/COLOR]";}s:8:"children";a:1:{i:0;s:14:"/internal_data";}}i:6;s:82:" //这个里面才是完整图片,然后这个文件夹貌似不能使用CDN ";i:7;a:4:{s:3:"tag";s:3:"url";s:6:"option";N;s:8:"original";a:2:{i:0;s:5:"[URL]";i:1;s:6:"[/URL]";}s:8:"children";a:1:{i:0;s:88:"https://xenforo.com/community/threads/only-thumbnails-coming-from-cdn.95555/#post-917156";}}i:8;s:77:" xenforo 流量大头居然无法使用CDN,有谁知道怎么解决么?";}, 1621686945, 1715013304
    Run Time: 0.000799
  13. INSERT INTO xf_bb_code_parse_cache
    	(content_type, content_id, parse_tree, cache_version, cache_date)
    VALUES (?, ?, ?, ?, ?)
    ON DUPLICATE KEY UPDATE parse_tree = VALUES(parse_tree),
    	cache_version = VALUES(cache_version),
    	cache_date = VALUES(cache_date)
    Params: post, 178348, a:1:{i:0;s:72:"图片跟附件是有访问权限的。除非自己做链路上的cdn。";}, 1621686945, 1715013304
    Run Time: 0.000462
  14. INSERT INTO xf_bb_code_parse_cache
    	(content_type, content_id, parse_tree, cache_version, cache_date)
    VALUES (?, ?, ?, ?, ?)
    ON DUPLICATE KEY UPDATE parse_tree = VALUES(parse_tree),
    	cache_version = VALUES(cache_version),
    	cache_date = VALUES(cache_date)
    Params: post, 178363, a:7:{i:0;a:4:{s:3:"tag";s:5:"quote";s:6:"option";s:30:"admin, post: 178348, member: 1";s:8:"original";a:2:{i:0;s:40:"[QUOTE="admin, post: 178348, member: 1"]";i:1;s:8:"[/QUOTE]";}s:8:"children";a:1:{i:0;s:72:"图片跟附件是有访问权限的。除非自己做链路上的cdn。";}}i:1;s:156:" 我在本地测试了一下bd Attachment Store,将完整图片和缩略图转移到 /data/attachment-files 下了,然后排除图片以外的附件。 ";i:2;a:4:{s:3:"tag";s:5:"color";s:6:"option";s:7:"#ff0000";s:8:"original";a:2:{i:0;s:15:"[COLOR=#ff0000]";i:1;s:8:"[/COLOR]";}s:8:"children";a:1:{i:0;s:159:"PS:这步是可以任何时候回滚到xenforo默认存储,包括已转移的附件,也可以转移回来,重建一下缓存和缩略图就可以了。";}}i:3;s:38:" 这样$config['externalDataUrl'] = '";i:4;a:4:{s:3:"tag";s:3:"url";s:6:"option";s:30:"http://cdn.domain.com/data%27;";s:8:"original";a:2:{i:0;s:38:"[URL='http://cdn.domain.com/data%27;']";i:1;s:6:"[/URL]";}s:8:"children";a:1:{i:0;s:28:"http://cdn.domain.com/data';";}}i:5;s:243:" 就可以把所有图片缓存到CDN了,因为排除了图片以外的附件,这些附件还处于/internal_data/attachments 目录下,所以还是受限与xenforo的权限管辖范围。 另外石头能不能发布一下这个插件 ";i:6;a:4:{s:3:"tag";s:3:"url";s:6:"option";N;s:8:"original";a:2:{i:0;s:5:"[URL]";i:1;s:6:"[/URL]";}s:8:"children";a:1:{i:0;s:101:"https://nullxf.com/resources/chipxf-remote-image-upload-imgur-imageshack-picasa-flickr-postimage.541/";}}}, 1621686945, 1715013304
    Run Time: 0.000450
  15. INSERT INTO xf_bb_code_parse_cache
    	(content_type, content_id, parse_tree, cache_version, cache_date)
    VALUES (?, ?, ?, ?, ?)
    ON DUPLICATE KEY UPDATE parse_tree = VALUES(parse_tree),
    	cache_version = VALUES(cache_version),
    	cache_date = VALUES(cache_date)
    Params: post, 178366, a:1:{i:0;s:135:"这样做无非是让第三方cdn有权限访问你的图片。何不开放游客权限访问原图?这样cdn就能访问原图了。";}, 1621686945, 1715013304
    Run Time: 0.000399
  16. INSERT INTO xf_bb_code_parse_cache
    	(content_type, content_id, parse_tree, cache_version, cache_date)
    VALUES (?, ?, ?, ?, ?)
    ON DUPLICATE KEY UPDATE parse_tree = VALUES(parse_tree),
    	cache_version = VALUES(cache_version),
    	cache_date = VALUES(cache_date)
    Params: post, 178375, a:4:{i:0;a:4:{s:3:"tag";s:5:"quote";s:6:"option";s:30:"admin, post: 178366, member: 1";s:8:"original";a:2:{i:0;s:40:"[QUOTE="admin, post: 178366, member: 1"]";i:1;s:8:"[/QUOTE]";}s:8:"children";a:1:{i:0;s:135:"这样做无非是让第三方cdn有权限访问你的图片。何不开放游客权限访问原图?这样cdn就能访问原图了。";}}i:1;s:109:" 但问题是/internal_data 目录下面的图片是id.hash.data 格式。 #$config['internalDataPath'] = '";i:2;a:4:{s:3:"tag";s:3:"url";s:6:"option";N;s:8:"original";a:2:{i:0;s:5:"[URL]";i:1;s:6:"[/URL]";}s:8:"children";a:1:{i:0;s:37:"http://cdn.domain.com/internal_data';";}}i:3;s:141:" //能这样设置吗? 另外开放游客访问原图,CDN怎样访问原图,不是我上传到CDN,用户才能访问CDN缓存吗?";}, 1621686945, 1715013304
    Run Time: 0.000416
  17. INSERT INTO xf_bb_code_parse_cache
    	(content_type, content_id, parse_tree, cache_version, cache_date)
    VALUES (?, ?, ?, ?, ?)
    ON DUPLICATE KEY UPDATE parse_tree = VALUES(parse_tree),
    	cache_version = VALUES(cache_version),
    	cache_date = VALUES(cache_date)
    Params: post, 178376, a:1:{i:0;s:78:"不可以那样设置。你用的cdn不是像七牛那样自动做镜像吗?";}, 1621686945, 1715013304
    Run Time: 0.000400
  18. INSERT INTO xf_bb_code_parse_cache
    	(content_type, content_id, parse_tree, cache_version, cache_date)
    VALUES (?, ?, ?, ?, ?)
    ON DUPLICATE KEY UPDATE parse_tree = VALUES(parse_tree),
    	cache_version = VALUES(cache_version),
    	cache_date = VALUES(cache_date)
    Params: post, 178377, a:1:{i:0;s:10:"CloudFlare";}, 1621686945, 1715013304
    Run Time: 0.000396
  19. INSERT INTO xf_bb_code_parse_cache
    	(content_type, content_id, parse_tree, cache_version, cache_date)
    VALUES (?, ?, ?, ?, ?)
    ON DUPLICATE KEY UPDATE parse_tree = VALUES(parse_tree),
    	cache_version = VALUES(cache_version),
    	cache_date = VALUES(cache_date)
    Params: post, 179722, a:1:{i:0;s:88:"我使用,bd Attachment Store + 阿里云OSS +Cloudfs 服务器同步整个 data目录";}, 1621686945, 1715013304
    Run Time: 0.000780
  20. INSERT INTO xf_bb_code_parse_cache
    	(content_type, content_id, parse_tree, cache_version, cache_date)
    VALUES (?, ?, ?, ?, ?)
    ON DUPLICATE KEY UPDATE parse_tree = VALUES(parse_tree),
    	cache_version = VALUES(cache_version),
    	cache_date = VALUES(cache_date)
    Params: post, 179733, a:2:{i:0;a:4:{s:3:"tag";s:5:"quote";s:6:"option";s:35:"jackton, post: 179722, member: 1891";s:8:"original";a:2:{i:0;s:45:"[QUOTE="jackton, post: 179722, member: 1891"]";i:1;s:8:"[/QUOTE]";}s:8:"children";a:1:{i:0;s:88:"我使用,bd Attachment Store + 阿里云OSS +Cloudfs 服务器同步整个 data目录";}}i:1;s:90:" 你非图片附件也这样同步了吗? 我测试发现如插件所述权限没了。";}, 1621686945, 1715013304
    Run Time: 0.000499
  21. INSERT INTO xf_bb_code_parse_cache
    	(content_type, content_id, parse_tree, cache_version, cache_date)
    VALUES (?, ?, ?, ?, ?)
    ON DUPLICATE KEY UPDATE parse_tree = VALUES(parse_tree),
    	cache_version = VALUES(cache_version),
    	cache_date = VALUES(cache_date)
    Params: post, 207958, a:1:{i:0;s:81:"设置了七牛镜像存储,但是发现无法自动抓取内容啊,他妈的";}, 1621686945, 1715013304
    Run Time: 0.000388

Included Files (111, XenForo Classes: 63)

  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/XenResource/Listener/Proxy.php
  33. library/XenGallery/Listener.php
  34. library/Brivium/BriviumHelper/EventListeners.php
  35. library/Brivium/BriviumHelper/1000271/EventListeners.php
  36. library/SV/RedisCache/Listener.php
  37. library/BestAnswer/Listener.php
  38. library/SV/RedisCache/XenForo/Model/DataRegistry.php
  39. library/Brivium/BriviumHelper/Model/ListenerClass.php
  40. library/Brivium/BriviumHelper/1000271/Model/ListenerClass.php
  41. library/XenForo/Router.php
  42. library/XenForo/Route/Filter.php
  43. library/XenForo/Route/Interface.php
  44. library/XenForo/Route/ResponseSuffix.php
  45. library/XenForo/Route/Prefix.php
  46. library/XenForo/Route/Prefix/Threads.php
  47. library/XenForo/RouteMatch.php
  48. library/XenForo/ControllerPublic/Thread.php
  49. library/XenForo/ControllerPublic/Abstract.php
  50. library/XenForo/Controller.php
  51. library/BestAnswer/ControllerPublic/Thread.php
  52. library/XenForo/Input.php
  53. library/XenForo/Session.php
  54. library/XenForo/Helper/Ip.php
  55. library/XenForo/Visitor.php
  56. library/XenForo/Model/User.php
  57. library/BestAnswer/Model/User.php
  58. library/XenResource/Listener/Proxy/ModelUser.php
  59. library/XenGallery/Model/User.php
  60. library/XenForo/Permission.php
  61. library/XenForo/Helper/Php.php
  62. library/XenForo/Phrase.php
  63. library/XenForo/Locale.php
  64. library/XenForo/ControllerHelper/ForumThreadPost.php
  65. library/XenForo/ControllerHelper/Abstract.php
  66. library/XenForo/Model/Thread.php
  67. library/SV/RedisCache/XenForo/Model/Thread.php
  68. library/BestAnswer/Model/Thread.php
  69. library/BestAnswer/Model/BestAnswer.php
  70. library/XenForo/Model/Forum.php
  71. library/XenForo/Helper/String.php
  72. library/XenForo/Helper/Discussion.php
  73. library/XenForo/Model/Post.php
  74. library/FreddysHouse/SignatureOnce/Event/LoadClassModel.php
  75. library/BestAnswer/Model/Post.php
  76. library/FreddysHouse/SignatureOnce/Model/Post.php
  77. library/XenForo/Model/Attachment.php
  78. library/XenForo/Model/Node.php
  79. library/XenForo/Route/Prefix/Categories.php
  80. library/XenForo/Route/Prefix/Forums.php
  81. library/XenForo/ControllerResponse/View.php
  82. library/XenForo/ControllerResponse/Abstract.php
  83. library/XenForo/Helper/Cookie.php
  84. library/XenResource/Listener/Template.php
  85. library/XenForo/ViewRenderer/HtmlPublic.php
  86. library/XenForo/ViewRenderer/Abstract.php
  87. library/XenForo/Template/Public.php
  88. library/XenForo/Template/Abstract.php
  89. library/XenForo/ViewPublic/Thread/View.php
  90. library/XenForo/ViewPublic/Base.php
  91. library/XenForo/View.php
  92. library/XenForo/BbCode/Parser.php
  93. library/XenForo/BbCode/Formatter/Base.php
  94. library/XenForo/ViewPublic/Helper/Message.php
  95. library/XenForo/BbCode/TextWrapper.php
  96. library/WhoHasVisited/Listener.php
  97. library/XenForo/Route/Prefix/Members.php
  98. library/XenForo/Template/FileHandler.php
  99. library/XenForo/Helper/File.php
  100. internal_data/templates/S.1,L.7,thread_view.php
  101. library/Brivium/RMDownloadTracker/EventListener/Listener.php
  102. internal_data/templates/S.1,L.7,page_nav.php
  103. library/XenForo/Route/Prefix/Posts.php
  104. library/XenForo/Model/Avatar.php
  105. internal_data/templates/S.1,L.7,bb_code_tag_quote.php
  106. library/XenForo/Helper/Criteria.php
  107. library/XenForo/Debug.php
  108. internal_data/templates/S.1,L.7,PAGE_CONTAINER.php
  109. internal_data/templates/S.1,L.7,xengallery_tab_links.php
  110. internal_data/templates/S.1,L.7,resources_tab_links.php
  111. library/XenForo/ViewRenderer/Json.php