vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Board Optimization - Plugin Based Template Cache (https://vborg.vbsupport.ru/showthread.php?t=113002)

Razasharp 06-02-2006 02:12 AM

I'm not quite sure what this 'caches' (sorry bit of a nube!)..

Does it cache templates such as postbit, threadbit etc etc? Or does it cache whole pages?

In simple terms how does this save resources or speed things up?

What is the best thing to look out for once it's installed to 'see' if it's having any impact? Speed when server loads are up or speed in general?

Sorry for the newbie-type questions - and thanks for what seems like will be a very useful hack :)

kellyandmike 06-02-2006 02:15 AM

Quote:

Originally Posted by orban
Did you follow the install steps?

Yes. Can you help?

orban 06-02-2006 09:43 AM

Quote:

Originally Posted by kellyandmike
Yes. Can you help?

-/home/.../forums/templates/
-/home/.../forums/templates/index.html
-/home/.../forums/template_cache.php

Do you have this structure?

From your error messages it looks like template_cache.php is not found.

Quote:

Originally Posted by Razasharp
I'm not quite sure what this 'caches' (sorry bit of a nube!)..

Does it cache templates such as postbit, threadbit etc etc? Or does it cache whole pages?

In simple terms how does this save resources or speed things up?

What is the best thing to look out for once it's installed to 'see' if it's having any impact? Speed when server loads are up or speed in general?

Sorry for the newbie-type questions - and thanks for what seems like will be a very useful hack :)

It saves all the templates needed for one page (eg. showthread.php) in one file and saves the database query that would be needed to get them. You can also save certain sized templates seperately and thus avoid the eval() call. It both lowered page creation time and server load for me.

Razasharp 06-02-2006 11:16 AM

Thanks Orban - I'm beginning to notice a speed difference now I guess the caching is happening.

Well done on a great hack!

kellyandmike 06-02-2006 12:22 PM

[QUOTE=orban]-/home/.../forums/templates/
-/home/.../forums/templates/index.html
-/home/.../forums/template_cache.php

Do you have this structure?

Ok got it now! I had put the templates_cache.php file in my templates folder instead of just the forums folder. It was saved successfully when I turned it on. Now we will see what it does.

Thanks so much for this and your quick responses.

orban 06-02-2006 12:26 PM

Yeah, it's not in the templates folder :)

BamaStangGuy 06-15-2006 06:55 AM

I love this hack. It has helped my load times tremendously. I only wish I could use the option to seperate the files into smaller bits but I have to many hacks installed the add template info on the fly.

orban 06-15-2006 09:18 AM

Yeah, it's just not possible then. Unless you know enough PHP to replace the str_replace with a $temp_variable = ... and then add $temp_variable to the template...

TECK 06-17-2006 08:54 AM

Quote:

Originally Posted by Triple_T
Well I uninstalled this now because it gave me nothing but problems, even with templates exccluded it doesn't work together with vBSEO!

Now still after it's uninstalled it screwed up my whole board, members get "page cannot be found" almost every 4 clicks and I have it too. It's very clear that this hack made this problem.

I'm so mad, don't even know where to search for the problem seems like my database is completely corrupt now :mad:

The hack is working perfectly with vbSEO. :)

sduckie2k5 06-20-2006 05:37 PM

Works great, thankyou! ^^


All times are GMT. The time now is 05:57 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.01482 seconds
  • Memory Usage 1,739KB
  • 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_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