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! ^^

TECK 06-21-2006 09:53 PM

Orban, since VB3.6 it's catching the datastore query with APC... should we remove it from the list of cached templates? The plugin can be modified to avoid this template.
Thanks for allowing this question into the 3.5.4 thread.

Floren

orban 06-22-2006 09:37 AM

I don't have vB 3.6 installed yet but I will soonish and then updated this accordingly.

TECK 06-22-2006 08:16 PM

Your hack is working perfectly in VB3.6 version.
I actually use a customized version of your hack so I do not know for sure...

orban 06-22-2006 11:19 PM

Quote:

Originally Posted by TECK
Orban, since VB3.6 it's catching the datastore query with APC... should we remove it from the list of cached templates? The plugin can be modified to avoid this template.

What do you mean by that then? I don't really get it :confused:

TECK 06-23-2006 06:39 AM

Look at class_datastore.php, it's self explanatory. :)

tienkhom 06-23-2006 05:46 PM

hello teck and orban, i have installed Teck's template cache, hellcat compressor, can I installed this one or conflict with ? thanks for advance

TECK 06-23-2006 05:58 PM

I never made a template cache hack?

orban 06-23-2006 06:02 PM

I was just browsing and searching the boards! lol :D

tienkhom 06-23-2006 06:17 PM

sorry, i am wrong,
not Teck but Trigunflame's Cache template System .

orban 06-23-2006 06:20 PM

I think mine overwrites his function or vice versa, not quite sure, but they definitely don't work at the same time.

glorify 07-16-2006 04:39 AM

Immediately dropped my server loads and page load times. Kudos dude.

Zia 07-23-2006 04:51 AM

Orban:
is there any update version is going to relase for vb3.6.0 ?

Thnkx man.

orban 07-23-2006 08:58 AM

Don't think there's anything to be changed.

orban 07-23-2006 09:30 AM

As soon as 3.6 Gold comes out I will stop replying to this thread, move to https://vborg.vbsupport.ru/showthread.php?t=121876 please then (even if you run 3.5, just state it in your post. Keeping two threads up to date = no thanks).

GrendelKhan{TSU 07-24-2006 07:47 AM

any conflict with Hellcat's page compressor?

orban 07-24-2006 10:32 AM

Should work fine.

GrendelKhan{TSU 07-24-2006 11:44 AM

Quote:

Originally Posted by orban
Should work fine.

cool.

< clicks install :)

orban 08-04-2006 10:39 AM

THIS THREAD IS CLOSED!

I switched to 3.6 today.

https://vborg.vbsupport.ru/showthread.php?t=121876

If you want support get 3.6 and check out the new thread. ;)

(I will still help you if you got 3.5 but use the new thread anyway.)

sananedir 04-28-2007 03:20 PM

i am sorry to update this thread

this plugin really works great

thank you.


All times are GMT. The time now is 01:33 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.01253 seconds
  • Memory Usage 1,771KB
  • 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
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (29)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