vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Microstats (only for admin) - load times, server loads, queries, uncached templates! (https://vborg.vbsupport.ru/showthread.php?t=59700)

BarBeQue 03-27-2004 12:18 PM

Ever since i installed the sidebar hack i get 1 uncached template:
Page generated in 0.37613 seconds with 11 queries (1 queries for uncached templates) [Server Loads: 0.63 ? 1.10 : 1.84]

Hence my obvious conclusion is that it's the sidebar template that's uncached (yes indeed, i'm quite the detective ;) ).
Anyway, how can i add this template to the cache?

lifesourcerec 04-01-2004 09:20 AM

Very nice. 8 queries here. But then again, just installed the new version with 1 hack.

BarBeQue 04-02-2004 04:55 PM

Ok, i solved my own problem. Posted the fix in the sidebar thread (for the peepz that use search and stumble on this thread)

Tnx again Erwin, your nice hack showed me the uncached template without needing to turn debug on :D

surfhog 04-08-2004 09:54 PM

WOW wee yippy

Thanks Erwin, at least I got one hack from this board to work :)

neocorteqz 04-08-2004 10:49 PM

small question. is 13 queries too much?? lol. Actually i'm serious, i think the default install was something like 8 or 9 on forum home.

cerebro 04-09-2004 11:14 PM

Nice hack, just install in VB3 gold.

Loyalty4Life 04-15-2004 12:12 AM

Thanks Erwin!

/me likes and clicks install.

kmike 04-17-2004 06:42 PM

Perfect hack.
I just want to suggest a little tweak which will eliminate exec call (and associated "fork" system call). It will work at least on Linux, not sure about freebsd.
PHP Code:

        if ($bbuserinfo[usergroupid]==6) {
                
$pageendtime microtime();
                
$starttime explode(' '$pagestarttime);
                
$endtime explode(' '$pageendtime);
                
$totaltime vb_number_format($endtime[0] - $starttime[0] + $endtime[1] - $starttime[1], 5);
                
$loadavg = @file_get_contents("/proc/loadavg");
                if (
$loadavg) {
                        
$regs explode(" ",$loadavg);
                        
$serverload=' [Server Loads: <b>'.$regs[0].'</b> '.$regs[1].' : '.$regs[2].']';
                }
                
$debughtml "<center><span class=\"smallfont\">Page generated in <b>$totaltime</b> seconds with <b>$query_count</b> queries" iif($_TEMPLATEQUERIES" (<b>" sizeof($_TEMPLATEQUERIES) . "</b> queries for uncached templates)"'') . "$serverload</span></center>";
                
$vartext str_replace('</body>'"$debughtml\n</body>"$vartext);
        } 


Rich 04-18-2004 11:43 PM

Hello,
I am a newbie myself,but you guys are amazing. I applied ALL the hacks with the directions I have been provided and my forum houses a portal (VBadvanced),as well as over 18 different hacks and numerous custom templates. With all that said,this is what I am running at right now with 10 members and 3 guests:

Page generated in 0.11039 seconds with 9 queries [Server Loads: 0.64 ยป 0.39 : 0.34]

Now I know I can lower this some as I have made no attempt at lower the queries. lol Any suggestions for lowering queries?

Rich 04-19-2004 12:50 PM

I have 2 uncached templates. I don't know how to cache a template. That is something I haven't done yet. I could use some guidance with this.


All times are GMT. The time now is 10:53 PM.

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.01241 seconds
  • Memory Usage 1,746KB
  • 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
  • (1)bbcode_php_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