Including Functions.php

Time Before: 0.00381 seconds
Time After: 0.00417 seconds
Time Taken: 0.00036 seconds

Memory Before: 508.203 KB
Memory After: 531.055 KB
Memory Used: 22.852 KB

Connect to Database on Server: localhost

Time Before: 0.00426 seconds
Time After: 0.00477 seconds
Time Taken: 0.00051 seconds

Memory Before: 530.992 KB
Memory After: 531.906 KB
Memory Used: 0.914 KB

SQL Query
SET @@sql_mode = ''

Time Before: 0.00497 seconds
Time After: 0.00509 seconds
Time Taken: 0.00013 seconds

Memory Before: 532.461 KB
Memory After: 532.984 KB
Memory Used: 0.523 KB

Datastore Setup
SQL Query
SELECT *
FROM datastore
WHERE title IN ('iconcache','mailqueue','prefixcache','options','bitfields','attachmentcache','forumcache','usergroupcache','stylecache','languagecache','products','pluginlist','cron','profilefield','loadcache','noticecache','activitystream')
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEdatastorerangePRIMARYPRIMARY50 17Using index condition

Time Before: 0.00598 seconds
Time After: 0.00680 seconds
Time Taken: 0.00082 seconds

Memory Before: 535.906 KB
Memory After: 536.758 KB
Memory Used: 0.852 KB

Time Before: 0.00516 seconds
Time After: 0.00886 seconds
Time Taken: 0.00371 seconds

Memory Before: 532.234 KB
Memory After: 1,118.414 KB
Memory Used: 586.180 KB

Session Handling
SQL Query
SELECT *
FROM session
WHERE userid = 0
	AND host = '3.14.254.228'
	AND idhash = '279a4b4061158bb935a6e5935aea5ce1'
LIMIT 1
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEsessionrefguest_lookup,user_activityguest_lookup51const,const,const2Using where

Time Before: 0.01148 seconds
Time After: 0.01180 seconds
Time Taken: 0.00032 seconds

Memory Before: 1,613.766 KB
Memory After: 1,614.383 KB
Memory Used: 0.617 KB

SQL Query
SELECT languageid,
			phrasegroup_global AS phrasegroup_global,
			phrasegroup_forumdisplay AS phrasegroup_forumdisplay,
			phrasegroup_inlinemod AS phrasegroup_inlinemod,
			phrasegroup_prefix AS phrasegroup_prefix,
			phrasegroupinfo AS lang_phrasegroupinfo,
			options AS lang_options,
			languagecode AS lang_code,
			charset AS lang_charset,
			locale AS lang_locale,
			imagesoverride AS lang_imagesoverride,
			dateoverride AS lang_dateoverride,
			timeoverride AS lang_timeoverride,
			registereddateoverride AS lang_registereddateoverride,
			calformat1override AS lang_calformat1override,
			calformat2override AS lang_calformat2override,
			logdateoverride AS lang_logdateoverride,
			decimalsep AS lang_decimalsep,
			thousandsep AS lang_thousandsep
FROM language
WHERE languageid = 1
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLElanguagesystemPRIMARY   1 

Time Before: 0.01288 seconds
Time After: 0.01339 seconds
Time Taken: 0.00051 seconds

Memory Before: 1,626.500 KB
Memory After: 1,626.461 KB
Memory Used: -0.039 KB

Time Before: 0.01062 seconds
Time After: 0.01355 seconds
Time Taken: 0.00293 seconds

Memory Before: 1,605.789 KB
Memory After: 1,679.188 KB
Memory Used: 73.398 KB

SQL Query
SELECT *
FROM datastore
WHERE title IN ('routes')
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEdatastoreconstPRIMARYPRIMARY50const1 

Time Before: 0.01422 seconds
Time After: 0.01444 seconds
Time Taken: 0.00022 seconds

Memory Before: 1,680.563 KB
Memory After: 1,681.141 KB
Memory Used: 0.578 KB

SQL Query
SELECT *
FROM style
WHERE (styleid = 2 AND userselect = 1)
	OR styleid = 2
ORDER BY styleid ASC
LIMIT 1
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEstyleconstPRIMARYPRIMARY2const1 

Time Before: 0.01796 seconds
Time After: 0.01843 seconds
Time Taken: 0.00047 seconds

Memory Before: 1,989.297 KB
Memory After: 1,989.891 KB
Memory Used: 0.594 KB

End call of global.php: 0.019811153411865
SQL Query
SELECT moderator.*, user.username,
IF(user.displaygroupid = 0, user.usergroupid, user.displaygroupid) AS displaygroupid, infractiongroupid
FROM moderator AS moderator
INNER JOIN user AS user USING(userid)
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEmoderatorALLuserid_forumid   172 
1SIMPLEusereq_refPRIMARYPRIMARY4business_business.moderator.userid1 

Time Before: 0.02089 seconds
Time After: 0.02287 seconds
Time Taken: 0.00197 seconds

Memory Before: 2,516.070 KB
Memory After: 2,516.797 KB
Memory Used: 0.727 KB

SQL Query
SELECT forum.forumid, forum.lastpost, forum.lastposter, forum.lastposterid, forum.lastthread, forum.lastthreadid, forum.lasticonid, forum.threadcount, forum.replycount, forum.lastpostid, forum.lastprefixid, user.usergroupid, user.homepage, user.options AS useroptions, IF(userlist.friend = 'yes', 1, 0) AS isfriend,
	user.lastactivity, user.lastvisit, IF(user.options & 512, 1, 0) AS invisible
	
FROM forum AS forum

LEFT JOIN user AS user ON (user.userid = forum.lastposterid)
LEFT JOIN userlist AS userlist ON (userlist.relationid = user.userid AND userlist.type = 'buddy' AND userlist.userid = 0)
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEforumALL    36 
1SIMPLEusereq_refPRIMARYPRIMARY4business_business.forum.lastposterid1 
1SIMPLEuserlisteq_refPRIMARY,relationid,useridPRIMARY9const,business_business.user.userid,const1Using where

Time Before: 0.02446 seconds
Time After: 0.02547 seconds
Time Taken: 0.00100 seconds

Memory Before: 2,537.133 KB
Memory After: 2,542.461 KB
Memory Used: 5.328 KB

SQL Query
SELECT title, template
FROM template
WHERE templateid IN (648,767,1155,1157,1156,778,779,775,777,774,776,770,1245,1195,1145,1254,1264,1205,1275,67,66,68,63,62,651,652,650,649,71,72,656,961,1257,907,911,908,909,910,1273,0,0,1236,1238,931,932,934,935,1158,1200,1199,1249,1201,758,757,761)
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEtemplaterangePRIMARYPRIMARY4 54Using index condition

Time Before: 0.02781 seconds
Time After: 0.02895 seconds
Time Taken: 0.00114 seconds

Memory Before: 2,824.070 KB
Memory After: 2,825.617 KB
Memory Used: 1.547 KB

SQL Query
SELECT *
FROM navigation
WHERE state & 4 = 0
ORDER BY navtype, displayorder
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEnavigationALL    27Using where; Using filesort

Time Before: 0.03492 seconds
Time After: 0.03532 seconds
Time Taken: 0.00040 seconds

Memory Before: 2,980.633 KB
Memory After: 2,984.094 KB
Memory Used: 3.461 KB

SQL Query
SELECT
	announcement.announcementid, startdate, title, announcement.views,
	user.username, user.userid, user.usertitle, user.customtitle, user.usergroupid,
	IF(displaygroupid=0, user.usergroupid, displaygroupid) AS displaygroupid, infractiongroupid
	
	
FROM announcement AS announcement

LEFT JOIN user AS user ON(user.userid = announcement.userid)

WHERE startdate <= 1715880877
	AND enddate >= 1715880877
	AND forumid IN (12,-1)
	
ORDER BY startdate DESC, announcement.announcementid DESC
LIMIT 1
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLE       Impossible WHERE noticed after reading const tables

Time Before: 0.04228 seconds
Time After: 0.04263 seconds
Time Taken: 0.00035 seconds

Memory Before: 3,118.367 KB
Memory After: 3,118.445 KB
Memory Used: 0.078 KB

SQL Query
SELECT COUNT(*) AS threads

FROM thread AS thread


WHERE thread.forumid = 12
	AND sticky = 0
	
	 AND visible = 1
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEthreadrefforumid,forumid_lastpostforumid6const,const,const1Using index

Time Before: 0.04346 seconds
Time After: 0.04376 seconds
Time Taken: 0.00030 seconds

Memory Before: 3,123.234 KB
Memory After: 3,123.727 KB
Memory Used: 0.492 KB

SQL Query
SELECT COUNT(*) AS newthread
FROM thread AS thread


WHERE thread.forumid = 12
	AND thread.lastpost > 1715880877
	AND open <> 10
	AND sticky = 0
	
	 AND visible = 1
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEthreadrangeforumid,forumid_lastpost,lastpostforumid_lastpost6 1Using index condition; Using where

Time Before: 0.04436 seconds
Time After: 0.04470 seconds
Time Taken: 0.00035 seconds

Memory Before: 3,123.961 KB
Memory After: 3,124.406 KB
Memory Used: 0.445 KB

SQL Query
SELECT thread.threadid, lastpost, open
FROM thread AS thread
WHERE forumid = 12
	AND sticky = 1
	
	 AND visible = 1
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEthreadrefforumid,forumid_lastpostforumid_lastpost2const1Using where

Time Before: 0.04524 seconds
Time After: 0.04560 seconds
Time Taken: 0.00036 seconds

Memory Before: 3,123.992 KB
Memory After: 3,124.438 KB
Memory Used: 0.445 KB

SQL Query
SELECT  thread.threadid,
	thread.lastpost, thread.lastposter, thread.lastposterid, thread.lastpostid, thread.replycount, IF(thread.views<=thread.replycount, thread.replycount+1, thread.views) AS views
	
FROM thread AS thread


WHERE forumid = 12
	AND sticky = 0
	
	 AND visible = 1 
	
	
	
	
ORDER BY sticky DESC, replycount DESC
LIMIT 0, 20
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEthreadrefforumid,forumid_lastpostforumid_lastpost2const1Using where; Using filesort

Time Before: 0.04634 seconds
Time After: 0.04672 seconds
Time Taken: 0.00038 seconds

Memory Before: 3,125.789 KB
Memory After: 3,126.094 KB
Memory Used: 0.305 KB

SQL Query
SELECT 
	IF(votenum >= 1, votenum, 0) AS votenum,
	IF(votenum >= 1 AND votenum > 0, votetotal / votenum, 0) AS voteavg,
 post.pagetext AS preview,
	thread.threadid, thread.title AS threadtitle, thread.forumid, thread.pollid, thread.open, thread.postusername, thread.postuserid, thread.iconid AS threadiconid,
	thread.dateline, thread.notes, thread.visible, thread.sticky, thread.votetotal, thread.attach, thread.lastpost, thread.lastposter, thread.lastposterid, thread.lastpostid, thread.replycount, IF(thread.views<=thread.replycount, thread.replycount+1, thread.views) AS views,
	thread.prefixid, thread.taglist, thread.hiddencount, thread.deletedcount,
	user.usergroupid, user.homepage, user.options AS useroptions, IF(userlist.friend = 'yes', 1, 0) AS isfriend,
	user.lastactivity, user.lastvisit, IF(user.options & 512, 1, 0) AS invisible
	
	
	
	
	
FROM thread AS thread
	LEFT JOIN user AS user ON (user.userid = thread.lastposterid)
	LEFT JOIN userlist AS userlist ON (userlist.relationid = user.userid AND userlist.type = 'buddy' AND userlist.userid = 0)
	
	
	
	LEFT JOIN post AS post ON(post.postid = thread.firstpostid)
	
	
	
WHERE thread.threadid IN (0,35) 
ORDER BY thread.sticky DESC, replycount DESC
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEthreadrangePRIMARYPRIMARY4 2Using index condition; Using filesort
1SIMPLEusereq_refPRIMARYPRIMARY4business_business.thread.lastposterid1 
1SIMPLEuserlisteq_refPRIMARY,relationid,useridPRIMARY9const,business_business.user.userid,const1Using where
1SIMPLEposteq_refPRIMARYPRIMARY4business_business.thread.firstpostid1 

Time Before: 0.04772 seconds
Time After: 0.04846 seconds
Time Taken: 0.00074 seconds

Memory Before: 3,129.242 KB
Memory After: 3,128.875 KB
Memory Used: -0.367 KB

SQL Query
UPDATE session
SET lastactivity = 1715880877, location = 'forumdisplay.php?f=12', inforum = 12, badlocation = 0, useragent = 'Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)', bypass = 0
WHERE sessionhash = '6e0aff92dee7184720ca615582ae70da'

Time Before: 0.05531 seconds
Time After: 0.05567 seconds
Time Taken: 0.00035 seconds

Memory Before: 3,391.898 KB
Memory After: 3,392.008 KB
Memory Used: 0.109 KB

Page generated in 0.054409980773926 seconds with 17 queries, spending 0.010311126708984 doing MySQL queries and 0.044098854064941 doing PHP things.
Shutdown Queries:
DISABLED