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)
-   -   VB3 MicroStats (https://vborg.vbsupport.ru/showthread.php?t=62173)

TECK 03-09-2004 11:07 PM

Little esthetic change, to display the number of unchached templates...
Change this code part:
Code:

                if ($_TEMPLATEQUERIES)
                {
                        $mstemplates = '<b>' . sizeof($_TEMPLATEQUERIES) . '</b> Uncached ';
                        $mstemplates .= iif(sizeof($_TEMPLATEQUERIES) != '1', 'Templates', 'Template') . ' | ';
                }

New file uploaded...

ChuanSE 03-10-2004 05:26 AM

Hey Teck,

I don't really understand what i should change? the code to change is the code that i allready have changed 3 days ago.... Unless i'm not seeing the difference ofcourse

this is what i have:
Code:

$mstemplates = 'NO Uncached Templates | ';
                if ($_TEMPLATEQUERIES)
                {
                        $mstemplates = '<b>' . sizeof($_TEMPLATEQUERIES) . '</b> Uncached ';
                        $mstemplates .= iif(sizeof($_TEMPLATEQUERIES) != '1', 'Templates', 'Template') . ' | ';
                }


TECK 03-10-2004 04:14 PM

If you have this already in your functions.php, you are set to go. :)
No need to change anything...

About your site:
1 Uncached Templates | DEBUG Mode OFF | GZIP ON (level 5) | 0.09 : 0.08 : 0.20

You have one template, not cached, that means you perform one query extra because the template name is not part of the cache array.
Also, I would switch the GZIP to level 1, 5 will slow down your server, IMO.
Server load averages gives me the hint you are on a dedicated server, that means you are rich... :D

ChuanSE 03-11-2004 05:14 AM

Ah Teck,

thx for this tip mate... I'm gonna try to find which template isn't in the cache aray allright.
ABout the gzip level. It seems logic indeed that 5 would slow down the server a little, but i was wondering.... it speeds up the page for the users then?
I always wondered what the best setting would be, so i took the middle :)
Gonna try it with level one now and will see if it improves the speed...

And yeah, it is a dedicated server allright :D
I have the forums / gallery / pphlogger / webmail / irc eggdrop and some other small things running there... But me rich? Naaah :p
Good sponsors, yes ;)

TECK 03-12-2004 03:02 PM

Quote:

Originally Posted by ChuanSE
I'm gonna try to find which template isn't in the cache aray allright.

Look at the new hacked code you added, there is your template name. Add it at the top of the file, in the templates array list.

ChuanSE 03-14-2004 06:21 AM

Problem is: i added like 20 hacks in the last week
Which one would it be then :?

Boofo 03-14-2004 03:01 PM

Turn on DEBEG and it will show you which template isn't cached.

TECK 03-18-2004 04:10 PM

Quote:

Originally Posted by ChuanSE
Problem is: i added like 20 hacks in the last week
Which one would it be then :?

Review the index.php file, since only there you get one uncached template, right?

sabret00the 03-24-2004 03:22 PM

sorry to be a pain, but i'm encountering an error on line 1843
Code:

        $ms .= '                <td class="tcat"' . iif($vboptions['allowchangestyles'], ' colspan="2"') . '><div class="smallfont">';
the error is
Code:

Parse error: parse error, unexpected T_STRING in K:\Network\xampp\htdocs\forums\includes\functions.php on line 1843

Fatal error: Call to undefined function: exec_nocache_headers() in K:\Network\xampp\htdocs\forums\admincp\global.php on line 37


Detomah 03-25-2004 01:31 AM

Excellent. :)

I've been looking for something like this for ages and missed this somehow, found it now though and installed perfectly first time. :D


All times are GMT. The time now is 01:10 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.02530 seconds
  • Memory Usage 1,740KB
  • 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
  • (4)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)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