Including Functions.php

Time Before: 0.00064 seconds
Time After: 0.00073 seconds
Time Taken: 0.00009 seconds

Memory Before: 436.383 KB
Memory After: 503.336 KB
Memory Used: 66.953 KB

Connect to Database on Server: localhost

Time Before: 0.00080 seconds
Time After: 0.00135 seconds
Time Taken: 0.00056 seconds

Memory Before: 503.289 KB
Memory After: 504.180 KB
Memory Used: 0.891 KB

SQL Query
SET @@sql_mode = ''

Time Before: 0.00159 seconds
Time After: 0.00174 seconds
Time Taken: 0.00016 seconds

Memory Before: 504.203 KB
Memory After: 504.258 KB
Memory Used: 0.055 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_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEdatastoreALLPRIMARY   47Using where

Time Before: 0.00268 seconds
Time After: 0.00334 seconds
Time Taken: 0.00066 seconds

Memory Before: 505.961 KB
Memory After: 663.422 KB
Memory Used: 157.461 KB

Time Before: 0.00180 seconds
Time After: 0.00604 seconds
Time Taken: 0.00423 seconds

Memory Before: 504.023 KB
Memory After: 960.156 KB
Memory Used: 456.133 KB

SQL Query
SELECT *
FROM datastore
WHERE title IN ('pt_bitfields','pt_issuestatus','pt_issuetype','pt_permissions','blogcategorycache','profilefield')
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEdatastorerangePRIMARYPRIMARY50 6Using index condition

Time Before: 0.00650 seconds
Time After: 0.00668 seconds
Time Taken: 0.00018 seconds

Memory Before: 1,119.867 KB
Memory After: 1,148.430 KB
Memory Used: 28.563 KB

Session Handling
SQL Query
SELECT *
FROM session
WHERE userid = 0
	AND host = '216.73.216.48'
	AND idhash = 'ea5a359a73a8141a16de516480d33c34'
LIMIT 1
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEsessionrefguest_lookup,user_activityguest_lookup83const,const,const2Using where

Time Before: 0.00889 seconds
Time After: 0.00905 seconds
Time Taken: 0.00016 seconds

Memory Before: 1,265.477 KB
Memory After: 1,282.164 KB
Memory Used: 16.688 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_projecttools AS phrasegroup_projecttools,
			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_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLElanguagesystemPRIMARY   1 

Time Before: 0.00944 seconds
Time After: 0.00980 seconds
Time Taken: 0.00035 seconds

Memory Before: 1,273.461 KB
Memory After: 1,466.148 KB
Memory Used: 192.688 KB

Time Before: 0.00863 seconds
Time After: 0.00986 seconds
Time Taken: 0.00123 seconds

Memory Before: 1,262.359 KB
Memory After: 1,463.781 KB
Memory Used: 201.422 KB

SQL Query
SELECT MAX(permissions & 1) AS perm
FROM cms_permissions
WHERE nodeid = 1 AND usergroupid IN (1)
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEcms_permissionsconstusergroupid,nodeidusergroupid8const,const1 

Time Before: 0.02024 seconds
Time After: 0.02037 seconds
Time Taken: 0.00013 seconds

Memory Before: 1,867.992 KB
Memory After: 1,884.102 KB
Memory Used: 16.109 KB

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

Time Before: 0.02073 seconds
Time After: 0.02096 seconds
Time Taken: 0.00023 seconds

Memory Before: 1,932.117 KB
Memory After: 2,068.742 KB
Memory Used: 136.625 KB

End call of global.php: 0.026708841323853
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
	, ptuser.userid AS pt_userid, ptuser.totalissues AS pt_totalissues, 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 pt_user AS ptuser ON (user.userid = ptuser.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 = 13)
LEFT JOIN blog_usercsscache AS blog_usercsscache ON (user.userid = blog_usercsscache.userid)
WHERE user.userid = 13 LIMIT 1
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEavatarsystemPRIMARY   0Const row not found
1SIMPLEcustomprofilepicsystemPRIMARY   0Const row not found
1SIMPLEsigpicsystemPRIMARY   0Const row not found
1SIMPLEusercsscachesystemPRIMARY   0Const row not found
1SIMPLEblockparsedsystemPRIMARY   0Const row not found
1SIMPLEblog_subscribeusersystembloguserid,userid   0Const row not found
1SIMPLEblog_usercsscachesystemPRIMARY   0Const row not found
1SIMPLEuserconstPRIMARYPRIMARY4const1 
1SIMPLEuserfieldconstPRIMARYPRIMARY4const1 
1SIMPLEusertextfieldconstPRIMARYPRIMARY4const1 
1SIMPLEcustomavatarconstPRIMARYPRIMARY4const1Unique row not found
1SIMPLEptuserconstPRIMARYPRIMARY4const1 
1SIMPLEbusystemPRIMARY   1 

Time Before: 0.02790 seconds
Time After: 0.02876 seconds
Time Taken: 0.00086 seconds

Memory Before: 2,426.750 KB
Memory After: 2,445.500 KB
Memory Used: 18.750 KB

SQL Query
SELECT title, template
FROM template
WHERE templateid IN (31751,31815,31816,31804,31788,31797,0,31757,31817,31818,31846,31741,31740,32301,32330,32291,32292,32294,32300,32299,32126,32127,32128,32129,31894,31895,32130,32135,32131,32132,32133,32136,32137,32138,32139,32140,32191,32193,32195,32197,32199,32247,32246,32249,32250,32253,32254,32496,32666,32672,32305,32303,32306,32308,32307,32309,32310,32311,32312,32313,32314,32315,32320,32317,32319,32316,32318,32329,32331,32332,32341,32323,32334,32335,32336,32337,32339,32302,32328,32333,32342,32338,32344,32343,32340,32420,32694,32726,32727,32747,0,0,7160,7154,18829,7158,7159,7157,7156,7161,7162,7163,32462,32736,32408,32412,32409,32410,32411,32766,0,0,32746,32707,32432,32433,32435,32436,32659,32778,32760,32710,32711,32259,32258,32262,5067,5038,6105,6107,5061,31822)
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEtemplaterangePRIMARYPRIMARY4 128Using index condition

Time Before: 0.03276 seconds
Time After: 0.03399 seconds
Time Taken: 0.00122 seconds

Memory Before: 2,766.367 KB
Memory After: 3,078.391 KB
Memory Used: 312.023 KB

SQL Query
SELECT MAX(dateline) AS lastpost, COUNT(*) AS total
FROM usernote AS usernote
WHERE userid = 13
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLE       Impossible WHERE noticed after reading const tables

Time Before: 0.03617 seconds
Time After: 0.03625 seconds
Time Taken: 0.00008 seconds

Memory Before: 3,076.539 KB
Memory After: 3,092.945 KB
Memory Used: 16.406 KB

SQL Query
SELECT blockid, requirement
FROM profileblockprivacy
WHERE userid = 13
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLE       Impossible WHERE noticed after reading const tables

Time Before: 0.03655 seconds
Time After: 0.03661 seconds
Time Taken: 0.00006 seconds

Memory Before: 3,092.094 KB
Memory After: 3,108.211 KB
Memory Used: 16.117 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_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEpfcsystemPRIMARY   0Const row not found
1SIMPLEpfALL    4Using where; Using filesort

Time Before: 0.03684 seconds
Time After: 0.03703 seconds
Time Taken: 0.00018 seconds

Memory Before: 3,092.547 KB
Memory After: 3,110.203 KB
Memory Used: 17.656 KB

SQL Query
SELECT * FROM customprofile WHERE userid='-1'
/**customprofile- member**/
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLE       Impossible WHERE noticed after reading const tables

Time Before: 0.03740 seconds
Time After: 0.03754 seconds
Time Taken: 0.00014 seconds

Memory Before: 3,118.953 KB
Memory After: 3,135.180 KB
Memory Used: 16.227 KB

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

Time Before: 0.03807 seconds
Time After: 0.03821 seconds
Time Taken: 0.00014 seconds

Memory Before: 3,127.633 KB
Memory After: 3,127.633 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 = 13
	 AND (visible = 1 OR profilevisitor.visitorid = 0)
	
ORDER BY profilevisitor.dateline DESC
LIMIT 10
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEprofilevisitorrefPRIMARY,useriduserid4const2Using where; Using filesort
1SIMPLEusereq_refPRIMARYPRIMARY4vbsuite_dev.profilevisitor.visitorid1 

Time Before: 0.03851 seconds
Time After: 0.03874 seconds
Time Taken: 0.00022 seconds

Memory Before: 3,128.391 KB
Memory After: 3,144.672 KB
Memory Used: 16.281 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 = 13
	AND socialgroupmember.type = 'member'
ORDER BY socialgroup.name
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLE       Impossible WHERE noticed after reading const tables

Time Before: 0.03933 seconds
Time After: 0.03948 seconds
Time Taken: 0.00015 seconds

Memory Before: 3,135.945 KB
Memory After: 3,151.797 KB
Memory Used: 15.852 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 = 13
	AND (visitormessage.state IN ('visible'))

	
ORDER BY visitormessage.dateline DESC
LIMIT 0, 10
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLE       Impossible WHERE noticed after reading const tables

Time Before: 0.03985 seconds
Time After: 0.04018 seconds
Time Taken: 0.00033 seconds

Memory Before: 3,213.797 KB
Memory After: 3,229.273 KB
Memory Used: 15.477 KB

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

Time Before: 0.04030 seconds
Time After: 0.04045 seconds
Time Taken: 0.00015 seconds

Memory Before: 3,228.211 KB
Memory After: 3,244.664 KB
Memory Used: 16.453 KB

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

WHERE visitormessage.userid = 13
	AND (visitormessage.state IN ('visible') OR (visitormessage.postuserid = 0 AND state = 'moderation'))
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLE       Impossible WHERE noticed after reading const tables

Time Before: 0.04076 seconds
Time After: 0.04086 seconds
Time Taken: 0.00011 seconds

Memory Before: 3,236.789 KB
Memory After: 3,252.883 KB
Memory Used: 16.094 KB

SQL Query
SELECT COUNT(*) AS count
FROM user
WHERE referrerid = 13
	AND usergroupid NOT IN (3,4)
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEuserrefusergroupid,referreridreferrerid4const1Using where

Time Before: 0.04110 seconds
Time After: 0.04121 seconds
Time Taken: 0.00011 seconds

Memory Before: 3,218.617 KB
Memory After: 3,235.008 KB
Memory Used: 16.391 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 <= 1764998905 AND stream.userid IN (13)
ORDER BY dateline DESC
LIMIT 0, 30
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLE       Impossible WHERE noticed after reading const tables

Time Before: 0.04251 seconds
Time After: 0.04267 seconds
Time Taken: 0.00015 seconds

Memory Before: 3,232.742 KB
Memory After: 3,248.781 KB
Memory Used: 16.039 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_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLE       Impossible WHERE noticed after reading const tables

Time Before: 0.04342 seconds
Time After: 0.04356 seconds
Time Taken: 0.00013 seconds

Memory Before: 3,237.875 KB
Memory After: 3,254.070 KB
Memory Used: 16.195 KB

SQL Query
SELECT * FROM customprofile WHERE userid='-1'
/**customprofile- member**/
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLE       Impossible WHERE noticed after reading const tables

Time Before: 0.04490 seconds
Time After: 0.04504 seconds
Time Taken: 0.00014 seconds

Memory Before: 3,328.688 KB
Memory After: 3,344.914 KB
Memory Used: 16.227 KB

SQL Query
UPDATE session
SET lastactivity = 1764998905, location = 'member.php?u=13', badlocation = 0
WHERE sessionhash = '0fcbc3c6fdaea91b34f40f93920f0cf9'

Time Before: 0.04606 seconds
Time After: 0.04616 seconds
Time Taken: 0.00010 seconds

Memory Before: 3,402.547 KB
Memory After: 3,402.484 KB
Memory Used: -0.063 KB

Page generated in 0.04585599899292 seconds with 24 queries, spending 0.0067069530487061 doing MySQL queries and 0.039149045944214 doing PHP things.
Shutdown Queries:
DISABLED