vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Queries & templates question (https://vborg.vbsupport.ru/showthread.php?t=69589)

Aaron1 09-18-2004 10:11 AM

Queries & templates question
 
Hi folks,

I was just curious what the concequentes are, when I remove from the showthread.php file the reference to un-used templates.

For example: I am not using the following templates in my postbit: postbit_useremail,icq,aim,yahoo. So when i remove these templates from the "$templatesused =" section from showthread.php, will it mean that the pages will load faster? Resulting in less queries? Will it be faster?

Best & thanks for replying!

/Aaron

Colin F 09-18-2004 10:36 AM

kind of

As the templates are listed in the "$templatesused" variable, they are all called using one query, so you don't get any additional queries there.
What you do get is a query that's not as long, as it doesn't have to fetch as much.
It will probaly make a tiny difference.

Just don't forget it, if you ever do use those functions.

Aaron1 09-18-2004 11:03 AM

Thanks Colin, to test it, I removed the Templates (in showthread.php) just to see if it would make any difference. And ackwardly enough, i think it doesn't speed up at all. It feels like its slower. The queries remain indeed the same, but the microstats hack I use tells me the MYSQL server needs to work harder. Hmmm

Dean C 09-18-2004 12:05 PM

Questions about modifying vBulletin's default behaviour and asking about modifications in general, should be posted in General vBulletin Questions. Please read the forum descriptions more carefully in future. I've moved your thread there for you :)

Thanks,
- Dean


All times are GMT. The time now is 01:21 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.01018 seconds
  • Memory Usage 1,708KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete