vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   What happens if templates are not cached? (https://vborg.vbsupport.ru/showthread.php?t=186742)

ThorstenA 07-30-2008 11:55 AM

What happens if templates are not cached?
 
I wonder what happens if templates are not cached? How does vbulletin then fetch them? Hoch much speed improvement is there if templates are cached? I found something here and here. Does it mean that when I do not have cached postbit template, there is an additional query each time a postbit is displayed? Therefore 15 additional queries if I display showthread?

Opserty 07-30-2008 12:09 PM

There is an additional query for each extra template that is fetched but on once. The templates are then added to the cache once they have been fetched by the query.

See the articles section on how to cache templates using plugins.

ThorstenA 07-30-2008 12:11 PM

Thanks. I already cache templates but was just curious :)

PaulSonny 07-30-2008 07:56 PM

Sorry to hi-jack this thread but felt my question is appropiate.

Do you need to cache all templates you have or just select templates?

Also can someone also please explain what the different types are, and what they mean? Like Action templates for example.

Thanks, Paul.

Opserty 07-30-2008 08:03 PM

<a href="https://vborg.vbsupport.ru/showthread.php?t=104532&highlight=cache" target="_blank">How-To Cache Templates</a>

You need to cache any templates which are fetched by your page/modification.

$globaltemplates are for templates used by all actions, $actiontemplates are action specific.

(You can cache templates through the cache_templates hook too).


All times are GMT. The time now is 11:43 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.01557 seconds
  • Memory Usage 1,712KB
  • 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
  • (5)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