Including Functions.php

Time Before: 0.00045 seconds
Time After: 0.00053 seconds
Time Taken: 0.00008 seconds

Memory Before: 434.055 KB
Memory After: 501.008 KB
Memory Used: 66.953 KB

Connect to Database on Server: localhost

Time Before: 0.00060 seconds
Time After: 0.00123 seconds
Time Taken: 0.00063 seconds

Memory Before: 500.984 KB
Memory After: 501.875 KB
Memory Used: 0.891 KB

Datastore Setup
SQL Query
SELECT *
FROM datastore
WHERE title IN ('smiliecache','bbcodecache','navdata','options','bitfields','attachmentcache','forumcache','usergroupcache','stylecache','languagecache','products','pluginlist','cron','profilefield','loadcache','noticecache','activitystream','routes')
idselect_typetablepartitionstypepossible_keyskeykey_lenrefrowsfilteredExtra
1SIMPLEdatastore ALLPRIMARY   3354.55Using where

Time Before: 0.00226 seconds
Time After: 0.00301 seconds
Time Taken: 0.00075 seconds

Memory Before: 503.656 KB
Memory After: 637.555 KB
Memory Used: 133.898 KB

Time Before: 0.00147 seconds
Time After: 0.01232 seconds
Time Taken: 0.01084 seconds

Memory Before: 501.695 KB
Memory After: 902.422 KB
Memory Used: 400.727 KB

SQL Query
SELECT *
FROM datastore
WHERE title IN ('blogcategorycache')
idselect_typetablepartitionstypepossible_keyskeykey_lenrefrowsfilteredExtra
1SIMPLEdatastore constPRIMARYPRIMARY50const1100.00 

Time Before: 0.01298 seconds
Time After: 0.01319 seconds
Time Taken: 0.00021 seconds

Memory Before: 1,060.320 KB
Memory After: 1,076.523 KB
Memory Used: 16.203 KB

Session Handling
SQL Query
SELECT *
FROM session
WHERE userid = 0
	AND host = '18.206.13.39'
	AND idhash = '43c95a2bcba837a5deb7150600d552d8'
LIMIT 1
idselect_typetablepartitionstypepossible_keyskeykey_lenrefrowsfilteredExtra
1SIMPLEsession refuser_activity,guest_lookupguest_lookup83const,const,const2100.00 

Time Before: 0.01401 seconds
Time After: 0.01429 seconds
Time Taken: 0.00028 seconds

Memory Before: 1,065.695 KB
Memory After: 1,082.398 KB
Memory Used: 16.703 KB

SQL Query
SELECT languageid,
			phrasegroup_global AS phrasegroup_global,
			phrasegroup_wol AS phrasegroup_wol,
			phrasegroup_user AS phrasegroup_user,
			phrasegroup_messaging AS phrasegroup_messaging,
			phrasegroup_cprofilefield AS phrasegroup_cprofilefield,
			phrasegroup_infractionlevel AS phrasegroup_infractionlevel,
			phrasegroup_posting AS phrasegroup_posting,
			phrasegroup_profilefield AS phrasegroup_profilefield,
			phrasegroup_activitystream AS phrasegroup_activitystream,
			phrasegroup_vbblogglobal AS phrasegroup_vbblogglobal,
			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_typetablepartitionstypepossible_keyskeykey_lenrefrowsfilteredExtra
1SIMPLElanguage systemPRIMARY   1100.00 

Time Before: 0.01543 seconds
Time After: 0.01888 seconds
Time Taken: 0.00345 seconds

Memory Before: 1,073.781 KB
Memory After: 1,246.484 KB
Memory Used: 172.703 KB

Time Before: 0.01349 seconds
Time After: 0.01902 seconds
Time Taken: 0.00552 seconds

Memory Before: 1,064.141 KB
Memory After: 1,243.961 KB
Memory Used: 179.820 KB

SQL Query
SELECT MAX(permissions & 1) AS perm
FROM cms_permissions
WHERE nodeid = 1 AND usergroupid IN (1)
idselect_typetablepartitionstypepossible_keyskeykey_lenrefrowsfilteredExtra
1SIMPLEcms_permissions constusergroupid,nodeidusergroupid8const,const1100.00 

Time Before: 0.03641 seconds
Time After: 0.03661 seconds
Time Taken: 0.00021 seconds

Memory Before: 1,629.906 KB
Memory After: 1,646.156 KB
Memory Used: 16.250 KB

SQL Query
SELECT *
FROM style
WHERE (styleid = 1 AND userselect = 1)
	OR styleid = 1
ORDER BY styleid ASC
LIMIT 1
idselect_typetablepartitionstypepossible_keyskeykey_lenrefrowsfilteredExtra
1SIMPLEstyle constPRIMARYPRIMARY2const1100.00 

Time Before: 0.03747 seconds
Time After: 0.03915 seconds
Time Taken: 0.00168 seconds

Memory Before: 1,630.266 KB
Memory After: 1,758.906 KB
Memory Used: 128.641 KB

End call of global.php: 0.046447992324829
SQL Query
SELECT 
	userfield.*, usertextfield.*, user.*, UNIX_TIMESTAMP(passworddate) AS passworddate, user.languageid AS saved_languageid,
	IF(displaygroupid=0, user.usergroupid, displaygroupid) AS displaygroupid, avatar.avatarpath, NOT ISNULL(customavatar.userid) AS hascustomavatar, customavatar.dateline AS avatardateline, customavatar.width AS avwidth, customavatar.height AS avheight, customavatar.height_thumb AS avheight_thumb, customavatar.width_thumb AS avwidth_thumb, customavatar.filedata_thumb, customprofilepic.userid AS profilepic, customprofilepic.dateline AS profilepicdateline, customprofilepic.width AS ppwidth, customprofilepic.height AS ppheight, sigpic.userid AS sigpic, sigpic.dateline AS sigpicdateline, sigpic.width AS sigpicwidth, sigpic.height AS sigpicheight, usercsscache.cachedcss, IF(usercsscache.cachedcss IS NULL, 0, 1) AS hascachedcss, usercsscache.buildpermissions AS cssbuildpermissions
	, bu.bloguserid, bu.entries, bu.options AS blog_options, bu.subscribeown AS blog_subscribeown, bu.memberids, bu.memberblogids,
bu.subscribeothers AS blog_subscribeothers, bu.title AS blog_title, bu.description AS blog_description, bu.allowsmilie AS blog_allowsmilie, bu.draft AS blog_draft, bu.pending AS blog_pending, bu.options_member, bu.options_guest, bu.options_buddy, bu.options_ignore, bu.uncatentries, bu.moderation AS blog_moderation, bu.deleted AS blog_deleted, bu.akismet_key AS blog_akismet_key, isblogmoderator, bu.comments_moderation AS blog_comments_moderation, bu.lastblog, bu.lastblogid, bu.lastblogtitle, bu.categorycache, bu.tagcloud, bu.sidebar, bu.custompages, bu.customblocks, blockparsed.blocktext, 1 AS blogstyleid, blog_usercsscache.csscolors AS blog_csscolors, blog_usercsscache.cachedcss AS blog_cachedcss, IF(blog_usercsscache.cachedcss IS NULL, 0, 1) AS blog_hascachedcss, blog_usercsscache.buildpermissions AS blog_cssbuildpermissions, IF(blog_subscribeuser.blogsubscribeuserid, 1, 0) AS blogsubscribed
FROM user AS user
LEFT JOIN userfield AS userfield ON (user.userid = userfield.userid)
LEFT JOIN usertextfield AS usertextfield ON (usertextfield.userid = user.userid) LEFT JOIN avatar AS avatar ON (avatar.avatarid = user.avatarid) LEFT JOIN customavatar AS customavatar ON (customavatar.userid = user.userid) LEFT JOIN customprofilepic AS customprofilepic ON (user.userid = customprofilepic.userid) LEFT JOIN sigpic AS sigpic ON (user.userid = sigpic.userid) LEFT JOIN usercsscache AS usercsscache ON (user.userid = usercsscache.userid)

LEFT JOIN blog_user AS bu ON (bu.bloguserid = user.userid)
LEFT JOIN blog_custom_block_parsed AS blockparsed ON (blockparsed.userid = user.userid AND blockparsed.styleid = 1 AND blockparsed.languageid = 1)
LEFT JOIN blog_subscribeuser AS blog_subscribeuser ON (user.userid = blog_subscribeuser.bloguserid AND blog_subscribeuser.userid = 7112)
LEFT JOIN blog_usercsscache AS blog_usercsscache ON (user.userid = blog_usercsscache.userid)
WHERE user.userid = 7112 LIMIT 1
idselect_typetablepartitionstypepossible_keyskeykey_lenrefrowsfilteredExtra
1SIMPLEuser constPRIMARYPRIMARY4const1100.00 
1SIMPLEuserfield constPRIMARYPRIMARY4const1100.00 
1SIMPLEusertextfield constPRIMARYPRIMARY4const1100.00 
1SIMPLEavatar constPRIMARYPRIMARY2const00.00unique row not found
1SIMPLEcustomavatar constPRIMARYPRIMARY4const00.00unique row not found
1SIMPLEcustomprofilepic constPRIMARYPRIMARY4const00.00unique row not found
1SIMPLEsigpic constPRIMARYPRIMARY4const00.00unique row not found
1SIMPLEusercsscache constPRIMARYPRIMARY4const00.00unique row not found
1SIMPLEbu constPRIMARYPRIMARY4const00.00unique row not found
1SIMPLEblockparsed constPRIMARYPRIMARY12const,const,const00.00unique row not found
1SIMPLEblog_subscribeuser constbloguserid,useridbloguserid8const,const00.00unique row not found
1SIMPLEblog_usercsscache constPRIMARYPRIMARY4const00.00unique row not found

Time Before: 0.04895 seconds
Time After: 0.04984 seconds
Time Taken: 0.00089 seconds

Memory Before: 2,178.258 KB
Memory After: 2,197.023 KB
Memory Used: 18.766 KB

SQL Query
SELECT title, template
FROM template
WHERE templateid IN (14,78,79,67,51,60,0,20,80,81,109,4,3,574,603,564,565,567,573,572,399,400,401,402,158,159,403,408,404,405,406,409,410,411,412,413,464,466,468,470,472,520,519,522,523,526,527,769,939,945,578,576,579,581,580,582,583,584,585,586,587,588,593,590,592,589,591,602,604,605,614,596,607,608,609,610,612,575,601,606,615,611,617,616,613,693,967,999,1000,1020,0,0,426,420,419,424,425,423,422,427,428,429,735,1009,681,685,682,683,684,1039,0,0,1019,980,705,706,708,709,932,1051,1033,983,984,532,531,535,85)
idselect_typetablepartitionstypepossible_keyskeykey_lenrefrowsfilteredExtra
1SIMPLEtemplate rangePRIMARYPRIMARY4 123100.00Using where

Time Before: 0.05497 seconds
Time After: 0.05643 seconds
Time Taken: 0.00146 seconds

Memory Before: 2,471.164 KB
Memory After: 2,774.789 KB
Memory Used: 303.625 KB

SQL Query
SELECT MAX(dateline) AS lastpost, COUNT(*) AS total
FROM usernote AS usernote
WHERE userid = 7112
idselect_typetablepartitionstypepossible_keyskeykey_lenrefrowsfilteredExtra
1SIMPLEusernote refuseriduserid4const1100.00 

Time Before: 0.05954 seconds
Time After: 0.05978 seconds
Time Taken: 0.00024 seconds

Memory Before: 2,767.609 KB
Memory After: 2,784.031 KB
Memory Used: 16.422 KB

SQL Query
SELECT blockid, requirement
FROM profileblockprivacy
WHERE userid = 7112
idselect_typetablepartitionstypepossible_keyskeykey_lenrefrowsfilteredExtra
1SIMPLEprofileblockprivacy refPRIMARYPRIMARY4const1100.00 

Time Before: 0.06038 seconds
Time After: 0.06059 seconds
Time Taken: 0.00021 seconds

Memory Before: 2,783.250 KB
Memory After: 2,799.484 KB
Memory Used: 16.234 KB

SQL Query
SELECT pf.profilefieldcategoryid, pfc.location, pf.*
FROM profilefield AS pf
LEFT JOIN profilefieldcategory AS pfc ON(pfc.profilefieldcategoryid = pf.profilefieldcategoryid)
WHERE pf.form = 0 
		AND pf.hidden = 0
ORDER BY pfc.displayorder, pf.displayorder
idselect_typetablepartitionstypepossible_keyskeykey_lenrefrowsfilteredExtra
1SIMPLEpf ALL    425.00Using where; Using temporary; Using filesort
1SIMPLEpfc eq_refPRIMARYPRIMARY2vb_local.pf.profilefieldcategoryid1100.00 

Time Before: 0.06122 seconds
Time After: 0.06187 seconds
Time Taken: 0.00065 seconds

Memory Before: 2,783.828 KB
Memory After: 2,802.000 KB
Memory Used: 18.172 KB

SQL Query
SELECT * FROM customprofile WHERE userid='-1'
/**customprofile- member**/
idselect_typetablepartitionstypepossible_keyskeykey_lenrefrowsfilteredExtra
1SIMPLEcustomprofile refuseriduserid4const1100.00 

Time Before: 0.06280 seconds
Time After: 0.06308 seconds
Time Taken: 0.00027 seconds

Memory Before: 2,813.258 KB
Memory After: 2,829.477 KB
Memory Used: 16.219 KB

SQL Query
UPDATE user SET
	profilevisits = profilevisits + 1
WHERE userid = 7112

Time Before: 0.06385 seconds
Time After: 0.06572 seconds
Time Taken: 0.00187 seconds

Memory Before: 2,821.570 KB
Memory After: 2,821.570 KB
Memory Used: 0.000 KB

SQL Query
SELECT user.userid, user.username, user.usergroupid, user.displaygroupid, profilevisitor.visible, user.infractiongroupid
	
FROM profilevisitor AS profilevisitor
INNER JOIN user AS user ON (user.userid = profilevisitor.visitorid)

WHERE profilevisitor.userid = 7112
	 AND (visible = 1 OR profilevisitor.visitorid = 0)
	
ORDER BY profilevisitor.dateline DESC
LIMIT 10
idselect_typetablepartitionstypepossible_keyskeykey_lenrefrowsfilteredExtra
1SIMPLEprofilevisitor refPRIMARY,useriduserid4const1100.00Using where; Using index; Using filesort
1SIMPLEuser eq_refPRIMARYPRIMARY4vb_local.profilevisitor.visitorid1100.00 

Time Before: 0.06631 seconds
Time After: 0.06663 seconds
Time Taken: 0.00032 seconds

Memory Before: 2,822.578 KB
Memory After: 2,838.359 KB
Memory Used: 15.781 KB

SQL Query
SELECT socialgroup.groupid, socialgroup.name, socialgroup.description, socialgroup.dateline, sgicon.dateline AS icondateline,
	sgicon.thumbnail_width AS iconthumb_width, sgicon.thumbnail_height AS iconthumb_height
FROM socialgroupmember AS socialgroupmember
INNER JOIN socialgroup AS socialgroup ON
	(socialgroup.groupid = socialgroupmember.groupid)
LEFT JOIN socialgroupicon AS sgicon ON sgicon.groupid = socialgroup.groupid
WHERE
	socialgroupmember.userid = 7112
	AND socialgroupmember.type = 'member'
ORDER BY socialgroup.name
idselect_typetablepartitionstypepossible_keyskeykey_lenrefrowsfilteredExtra
1SIMPLE         no matching row in const table

Time Before: 0.06759 seconds
Time After: 0.06786 seconds
Time Taken: 0.00026 seconds

Memory Before: 2,826.938 KB
Memory After: 2,842.781 KB
Memory Used: 15.844 KB

SQL Query
SELECT SQL_CALC_FOUND_ROWS
	visitormessage.*, user.*, visitormessage.ipaddress AS messageipaddress
	
	
	,avatar.avatarpath, NOT ISNULL(customavatar.userid) AS hascustomavatar, customavatar.dateline AS avatardateline,customavatar.width AS avwidth,customavatar.height AS avheight, customavatar.width_thumb AS avwidth_thumb, customavatar.height_thumb AS avheight_thumb, filedata_thumb, NOT ISNULL(customavatar.userid) AS hascustom
	
FROM visitormessage AS visitormessage
LEFT JOIN user AS user ON (visitormessage.postuserid = user.userid)

LEFT JOIN avatar AS avatar ON(avatar.avatarid = user.avatarid) LEFT JOIN customavatar AS customavatar ON(customavatar.userid = user.userid)


WHERE visitormessage.userid = 7112
	AND (visitormessage.state IN ('visible'))

	
ORDER BY visitormessage.dateline DESC
LIMIT 0, 10
idselect_typetablepartitionstypepossible_keyskeykey_lenrefrowsfilteredExtra
1SIMPLEvisitormessage refuseriduserid4const1100.00Using where
1SIMPLEuser eq_refPRIMARYPRIMARY4vb_local.visitormessage.postuserid1100.00 
1SIMPLEavatar eq_refPRIMARYPRIMARY2vb_local.user.avatarid1100.00Using where
1SIMPLEcustomavatar eq_refPRIMARYPRIMARY4vb_local.user.userid1100.00 

Time Before: 0.06900 seconds
Time After: 0.06950 seconds
Time Taken: 0.00050 seconds

Memory Before: 2,841.539 KB
Memory After: 2,856.758 KB
Memory Used: 15.219 KB

SQL Query
SELECT FOUND_ROWS()
idselect_typetablepartitionstypepossible_keyskeykey_lenrefrowsfilteredExtra
1SIMPLE         No tables used

Time Before: 0.07002 seconds
Time After: 0.07014 seconds
Time Taken: 0.00012 seconds

Memory Before: 2,855.258 KB
Memory After: 2,871.664 KB
Memory Used: 16.406 KB

SQL Query
SELECT COUNT(*) AS messages, MAX(visitormessage.dateline) AS dateline
FROM visitormessage AS visitormessage

WHERE visitormessage.userid = 7112
	AND (visitormessage.state IN ('visible') OR (visitormessage.postuserid = 0 AND state = 'moderation'))
idselect_typetablepartitionstypepossible_keyskeykey_lenrefrowsfilteredExtra
1SIMPLEvisitormessage refpostuserid,useriduserid4const1100.00Using index condition; Using where

Time Before: 0.07064 seconds
Time After: 0.07091 seconds
Time Taken: 0.00028 seconds

Memory Before: 2,862.180 KB
Memory After: 2,878.289 KB
Memory Used: 16.109 KB

SQL Query
SELECT COUNT(*) AS count
FROM user
WHERE referrerid = 7112
	AND usergroupid NOT IN (3,4)
idselect_typetablepartitionstypepossible_keyskeykey_lenrefrowsfilteredExtra
1SIMPLEuser refusergroupid,referreridreferrerid4const177.12Using where

Time Before: 0.07140 seconds
Time After: 0.07166 seconds
Time Taken: 0.00026 seconds

Memory Before: 2,844.195 KB
Memory After: 2,860.602 KB
Memory Used: 16.406 KB

SQL Query
SELECT relationid
FROM userlist
WHERE
	userid IN (7112)
		AND
	type = 'buddy'
		AND
	friend = 'yes'
idselect_typetablepartitionstypepossible_keyskeykey_lenrefrowsfilteredExtra
1SIMPLEuserlist refPRIMARY,useridPRIMARY4const1100.00Using where

Time Before: 0.07360 seconds
Time After: 0.07384 seconds
Time Taken: 0.00023 seconds

Memory Before: 2,920.539 KB
Memory After: 2,936.727 KB
Memory Used: 16.188 KB

SQL Query
SELECT stream.*, type.section, type.type
FROM activitystream AS stream
LEFT JOIN activitystreamtype AS type ON (stream.typeid = type.typeid)
WHERE stream.dateline <> 0 AND stream.dateline <= 1566534298 AND stream.userid IN (7112)
ORDER BY dateline DESC
LIMIT 0, 30
idselect_typetablepartitionstypepossible_keyskeykey_lenrefrowsfilteredExtra
1SIMPLEstream rangedateline,useriduserid8 3100.00Using index condition
1SIMPLEtype eq_refPRIMARYPRIMARY4vb_local.stream.typeid1100.00 

Time Before: 0.07451 seconds
Time After: 0.07487 seconds
Time Taken: 0.00037 seconds

Memory Before: 2,921.977 KB
Memory After: 2,938.547 KB
Memory Used: 16.570 KB

SQL Query
SELECT
	t.threadid, t.title, t.forumid, t.pollid, t.open, t.views, t.visible, t.postuserid, t.postuserid AS userid, t.replycount,
	t.postusername, t.prefixid, fp.pagetext
FROM thread AS t
INNER JOIN post AS fp ON (t.firstpostid = fp.postid)
WHERE
	t.threadid IN (17,14)
		AND
	t.visible <> 2
idselect_typetablepartitionstypepossible_keyskeykey_lenrefrowsfilteredExtra
1SIMPLEt rangePRIMARYPRIMARY4 290.00Using index condition; Using where
1SIMPLEfp eq_refPRIMARYPRIMARY4vb_local.t.firstpostid1100.00 

Time Before: 0.07565 seconds
Time After: 0.07601 seconds
Time Taken: 0.00036 seconds

Memory Before: 2,948.984 KB
Memory After: 2,965.617 KB
Memory Used: 16.633 KB

SQL Query
SELECT u.*
	, av.avatarpath, NOT ISNULL(cu.userid) AS hascustomavatar,
		cu.dateline AS avatardateline, cu.width AS avwidth, cu.height AS avheight, cu.height_thumb AS avheight_thumb,
		cu.width_thumb AS avwidth_thumb, NOT ISNULL(cu.filedata_thumb) AS filedata_thumb
		
FROM user AS u

	LEFT JOIN avatar AS av ON(av.avatarid = u.avatarid)
	LEFT JOIN customavatar AS cu ON(cu.userid = u.userid)
	
WHERE u.userid IN (7112)
idselect_typetablepartitionstypepossible_keyskeykey_lenrefrowsfilteredExtra
1SIMPLEu constPRIMARYPRIMARY4const1100.00 
1SIMPLEav constPRIMARYPRIMARY2const00.00unique row not found
1SIMPLEcu constPRIMARYPRIMARY4const00.00unique row not found

Time Before: 0.07661 seconds
Time After: 0.07703 seconds
Time Taken: 0.00042 seconds

Memory Before: 2,954.891 KB
Memory After: 2,972.406 KB
Memory Used: 17.516 KB

SQL Query
SELECT bm.userid, bm.permissions, bm.type, user.username
FROM blog_moderator AS bm
INNER JOIN user AS user USING (userid)
idselect_typetablepartitionstypepossible_keyskeykey_lenrefrowsfilteredExtra
1SIMPLEbm ALLuserid   1100.00 
1SIMPLEuser eq_refPRIMARYPRIMARY4vb_local.bm.userid1100.00 

Time Before: 0.07915 seconds
Time After: 0.07941 seconds
Time Taken: 0.00025 seconds

Memory Before: 2,946.438 KB
Memory After: 2,962.625 KB
Memory Used: 16.188 KB

SQL Query
SELECT * FROM customprofile WHERE userid='-1'
/**customprofile- member**/
idselect_typetablepartitionstypepossible_keyskeykey_lenrefrowsfilteredExtra
1SIMPLEcustomprofile refuseriduserid4const1100.00 

Time Before: 0.08177 seconds
Time After: 0.08204 seconds
Time Taken: 0.00027 seconds

Memory Before: 3,026.125 KB
Memory After: 3,042.344 KB
Memory Used: 16.219 KB

SQL Query
UPDATE session
SET lastactivity = 1566534298, location = 'member.php?u=7112', badlocation = 0
WHERE sessionhash = '16431fa45aa35f41c4aa3c108eadcddc'

Time Before: 0.08385 seconds
Time After: 0.08417 seconds
Time Taken: 0.00032 seconds

Memory Before: 3,107.758 KB
Memory After: 3,107.664 KB
Memory Used: -0.094 KB

Page generated in 0.083511114120483 seconds with 26 queries, spending 0.016761541366577 doing MySQL queries and 0.066749572753906 doing PHP things.
Shutdown Queries:
DISABLED