![]() |
same thing for me as you can see here :
for gzip : http://dyt4concept.com/temp/gzip.php here gzip is enabled and here : http://forum.dyt4concept.com/ gzip is disabled ???? It's the same server... |
Quote:
go here to test see if gzip is enabled for your site: http://leknor.com/code/gziped.php |
thx the results :
http://forum.dyt4concept.com is gziped. and http://dyt4concept.com is gziped. I really don't understand, maybe a bug in the hack ? I don't know Please help thx |
Quote:
Now I have an issue... It tells me that GZIP is disabled, however using this test it seems to be enabled... Odd |
Also, it tells me that debug is on.... Should this be on? How do I turn it off?
|
:( Well. I used the replacement var - finally - but still have negative values:
0.24685 seconds (-98.10% PHP v4.1.2 - 198.10% MySQL) with 34 queries. What could be the misconfiguration problems Nakkid referred to ? Thanks |
did you modified properly db_mysql.php? the PHP percent is pulled from there.
|
GZIP library compression will be enabled only in pages where GZIP is in use. ;)
the hack is looking in the header, to see id GZIP os enabled, and dont forget that those stats are generated individually for each page. |
Quote:
also in the install file, you have all the variables listed there. regards, nakkid. |
Quote:
|
Quote:
reloading the page goes back to normal i.e. forumhome page Page generated in 0.0316610 seconds (-1,271.66% PHP - 1,371.66% MySQL) with 29 queries. and Page generated in 0.3843770 seconds (-12.94% PHP - 112.94% MySQL) with 29 queries. and Page generated in 0.2906680 seconds (-49.57% PHP - 149.57% MySQL) with 29 queries. normally it's around Page generated in 0.5901080 seconds (22.84% PHP - 77.16% MySQL) with 29 queries. if i use index.php?explain=1 i get Page generated in -0.361466 seconds with 29 queries, spending 0.43714368343353 doing MySQL queries and -0.79860968343353 doing PHP things. |
Quote:
|
Quote:
i wish i could expplain why sometimes the time goes negative. firefly have 1.3 installed. and the PHP and MySQL % is generated in db_mysql.php |
Quote:
|
Quote:
I'd like to know if it SHOULD be turned off... If that would increase server performance... If so, I'll go do it right away :D |
ok. let's try this piece of code:
PHP Code:
|
DEBUG mode is selected as default by PHP 4.0.5 and higher.
|
george, this is what i get on your board:
[high]Page generated in 0.4542080 seconds (93.83% PHP - 6.17% MySQL) with 17 queries.[/high] i reload it 10times and i never got a negative value. i'm beginning to believe is the browser's fault.. and i'm not even neo.. hehe |
Quote:
Page generated in 0.092332 seconds with 15 queries, spending 0.029972076416016 doing MySQL queries and 0.062359923583984 doing PHP things. this is the query that got time reduced the most on subsequent reloads PHP Code:
|
Upgrade to Version 1.4 (from 1.3)
in functions.php and function dooutput(), find: PHP Code:
PHP Code:
PHP Code:
PHP Code:
|
george, here it is:
Code:
1. Page generated in 0.7345470 seconds (96.28% PHP - 3.72% MySQL) with 15 queries. about your time: Code:
Time before: 0.012995958328247 |
Quote:
|
i tried. it will do the same, if i delete the attachment and upload a new one called vbmicrostats2.txt, if i click on the download link, it will save it as vbmicrostats.txt to my pc.. wierd huh? and btw, this was the solution firefly gave me. ;)
regards, nakkid. |
Quote:
|
works great thanks again ;)
|
Quote:
P.S.: just a question about GZIP. My server supports it (as written in phpinfo and $HTTP_ACCEPT_ENCODING...), but in my VB options I disabled it to decrease server CPU load. 1) Do you think it should displayed 'enabled' or 'disabled' in your hack ? Standing on the bare code, I guess only the server var status is checked, not the vb one too... 2) Do you think I should enable it to increase performances ? How the cpu load should be acceptably higher ? Thanks a lot. |
Just as an addendum to point 1 just above, I used this small customization about gzip:
Code:
within: function dooutput($vartext,$sendheader=1) { Btw, my questions above about negative value (as eva said, mostly on the main page somethimes...) and the cpu overloading with gzip, REMAIN .... :) Thanks a lot Bye |
very nice hack nakkid
working gr8 :) thx |
Upgrade your vbMicroStats to Version 1.5:
forum/admin/functions.php 1. in [high]function dooutput()[/high], find the code: PHP Code:
PHP Code:
PHP Code:
PHP Code:
To do this, do yo your [high]VBulletin Options > HTTP Headers and output > GZIP Output[/high] and select Yes. Otherwise, it will show as disabled. |
Quote:
|
just download the [high]vbmicrostats.txt[/high] attachment. make sure you clear your history and cookies if you cannot download the latest version. i put it [high]FREAKY YELLOW[/high] what you have to do in order to get the latest file, so you cannot miss it. ;)
also, please do not quote full code, it make your post almost unreadable. regards, nakkid. |
woot woot.. hehe
Page generated in 0.6007300 seconds (90.65% PHP - 9.35% MySQL) with 93 queries. PHP version 4.1.2 (Debug mode) with GZIP library compression disabled. |
Quote:
YOU REMOVED THE Jelsoft COPYRIGHT NOTICE. please re-add it asap, as you infringe vBulletin's copyright and proper usage. i forgot one detail (thanks Recon_Boy): 93 queries? this is extremly high, you could crash your host's server if you have over 100 users simultaneously on your board. check your code hacks. you have a bug there. vB.org who is loaded up to the sky with hacks, have 33 queries max. regards, nakkid. |
Quote:
yeah, do what Nakkid says. |
Well I realised that many of us don't want to let users see to many technical details. So in v1.6, the PHP version, Debug mode and GZIP compresion status will be visible only to admins.
A neat feature that i added was the Detailed View. Basically, it's a link that will output in details, what is happening on that page, related to PHP and MySQL. I will post a screenshoot below, so you can understand better. 1. forum/admin/functions.php In [high]function dooutput()[/high], replace the previous edited code with: PHP Code:
replace your vbMicroStats template contents with: Code:
Page generated in $trimmedtime seconds ($percentphp - $percentsql) with $query_count queries.<br> PHP Code:
|
vbMicroStats detailed view (generated by vBulletin):
|
Quote:
|
thank you for being professional.
all the best with your work. you deserve it, you did an amasing job there.. ;) |
thanks again =]
|
Quote:
Are the others so 'professional' ???? :cool: |
All times are GMT. The time now is 02:40 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|