vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   template storage question? (https://vborg.vbsupport.ru/showthread.php?t=58629)

sabret00the 11-16-2003 01:22 PM

template storage question?
 
not sure where this goes but i know you'll be the people to give me the answers i'm in search of?

what are the advantages of storing templates in the database as apposed to storing em on the server as files?

assassingod 11-16-2003 01:36 PM

In the database everything is more organised and easier to call etc. Files will get messy and not really the most efficient way to do it (IMO)

filburt1 11-16-2003 01:48 PM

Database is faster and easier to back up (it backs up along with posts, users, etc.).

Velocd 11-16-2003 02:03 PM

Out of the many template engines out there, vBulletin is about the only I know that stores them in the database.

It's certainly not the only way, and I view storing them on the server is a fine method. The engine I use often for non-vBulletin development is Smarty. Either that, or I create my own-- although my versions lack an adequate caching method.

I would have preferred it more if the vBulletin templates were files, so I could access them in a separate file editor, and not through the admin cp. (like PhpBB) There are also some other inconvienances to having them in the DB.

sabret00the 11-16-2003 02:27 PM

such as
* sabret00the asks all intruiged?

@filburt: is there any data to show the performance variations between an include() and a MySQL select()?

filburt1 11-19-2003 01:31 PM

Quote:

Originally Posted by sabret00the
@filburt: is there any data to show the performance variations between an include() and a MySQL select()?

It's not a straight include...it has to load the file via fopen(), parse it, eval the contents to parse all the variables, parse the replacements, and close it. Several dozen times.

sabret00the 11-19-2003 01:40 PM

if it does that with the include, what's the process it undertakes using the alternative database methodology?

filburt1 11-19-2003 01:44 PM

Quote:

Originally Posted by sabret00the
if it does that with the include, what's the process it undertakes using the alternative database methodology?

It can't do the include without some messy coding...:confused:


All times are GMT. The time now is 10:27 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.01041 seconds
  • Memory Usage 1,724KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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