vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   vbMicroStats: page load time, queries, GZIP and PHP version (https://vborg.vbsupport.ru/showthread.php?t=35811)

TECK 03-10-2002 11:14 PM

george, here it is:

Code:

1. Page generated in 0.7345470 seconds (96.28% PHP - 3.72% MySQL) with 15 queries.
2. Page generated in 0.8443970 seconds (96.82% PHP - 3.18% MySQL) with 15 queries.
3. Page generated in 0.6960710 seconds (71.68% PHP - 28.32% MySQL) with 15 queries.
4. Page generated in 0.9797110 seconds (66.31% PHP - 33.69% MySQL) with 15 queries.
5. Page generated in 0.6964480 seconds (96.46% PHP - 3.54% MySQL) with 15 queries.

i just refreshed 5 times and posted the results.

about your time:
Code:

Time before: 0.012995958328247
Time after:  0.027544975280762

this is extremly small, so that means you do not call it before and after the headers. that explains the negative values in PHP and MySQL.

FWC 03-11-2002 03:28 AM

Quote:

Originally posted by nakkid
[high]IF YOU DOWNLOADED A PREVIOUS VERSION,
MAKE SURE YOU CLEAR YOUR TEMP FILES, CACHE AND HISTORY,
BEFORE YOU REDOWNLOAD THE UPDATED FILE!
[/high]
I noticed that, when you download again an attachment, it will store it as the old install. The easiest way to see if you have the right version, is to look at the top of the file, it will say there Version 1.4.

Why don't you just change the name of the file with each upgrade? It would be easier for everybody. :classic:

TECK 03-11-2002 03:56 AM

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.

FWC 03-11-2002 04:17 AM

Quote:

Originally posted by nakkid
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.

Bummer. :ponder:

dyt4 03-11-2002 05:29 AM

works great thanks again ;)

Jawelin 03-11-2002 08:25 AM

Quote:

Originally posted by nakkid
did you modified properly db_mysql.php? the PHP percent is pulled from there.
Yes. I did from the 1.1 ver and always checked wasn't changed in any new release of your hack.

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.

Jawelin 03-11-2002 11:53 AM

Just as an addendum to point 1 just above, I used this small customization about gzip:
Code:

within: function dooutput($vartext,$sendheader=1) {

add

      $gzipoutput,$gziplevel
at the end of
      global .... row.

then add

      if ($gzipoutput and $gziplevel)
          $gziptext.=" and active (level $gziplevel)";

right after
      $gziptext="enabled";

:cross-eyed:

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

nuno 03-11-2002 05:05 PM

very nice hack nakkid
working gr8 :)
thx

TECK 03-11-2002 06:33 PM

Upgrade your vbMicroStats to Version 1.5:

forum/admin/functions.php
1. in [high]function dooutput()[/high], find the code:
PHP Code:

global $pagestarttime,$query_count,$showqueries,$querytime,$DB_site,$microstats,$HTTP_ACCEPT_ENCODING

replace it with:
PHP Code:

global $pagestarttime,$query_count,$showqueries,$querytime,$DB_site,$gzipoutput,$gziplevel,$microstats

2. find the code:
PHP Code:

  if (strpos(" ".$HTTP_ACCEPT_ENCODING,"gzip")) {
    
$gziptext="enabled";
  } else {
    
$gziptext="disabled";
  } 

replace it with:
PHP Code:

  if ($gzipoutput==1) {
    
$gziptext="enabled (level $gziplevel)";
  } else {
    
$gziptext="disabled";
  } 

[high]NOTE:[/high] The GZIP compression will show as enabled only if you enabled your board to use GZIP compression.
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.

okrogius 03-11-2002 10:35 PM

Quote:

Originally posted by nakkid
Upgrade your vbMicroStats to Version 1.5:

forum/admin/functions.php
1. in [high]function dooutput()[/high], find the code:
PHP Code:

global $pagestarttime,$query_count,$showqueries,$querytime,$DB_site,$microstats,$HTTP_ACCEPT_ENCODING

replace it with:
PHP Code:

global $pagestarttime,$query_count,$showqueries,$querytime,$DB_site,$gzipoutput,$gziplevel,$microstats

2. find the code:
PHP Code:

  if (strpos(" ".$HTTP_ACCEPT_ENCODING,"gzip")) {
    
$gziptext="enabled";
  } else {
    
$gziptext="disabled";
  } 

replace it with:
PHP Code:

  if ($gzipoutput==1) {
    
$gziptext="enabled (level $gziplevel)";
  } else {
    
$gziptext="disabled";
  } 

[high]NOTE:[/high] The GZIP compression will show as enabled only if you enabled your board to use GZIP compression.
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.

Is there a clean install txt directions file telling how to isntall 1.5? If you can email it to me that would be great. oleg@gaminguru.com


All times are GMT. The time now is 02:08 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
  • Page Generation 0.01650 seconds
  • Memory Usage 1,763KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (8)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete