Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Plugin Based Template Cache Details »»
Plugin Based Template Cache
Version: 1.0.3, by orban orban is offline
Developer Last Online: Oct 2012 Show Printable Version Email this Page

Category: Board Optimization - Version: 3.5.4 Rating:
Released: 04-13-2006 Last Update: Never Installs: 55
Uses Plugins
Additional Files  
No support by the author.

3.6 Thread for Support

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

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 04-15-2006, 01:51 PM
orban orban is offline
 
Join Date: Jan 2005
Posts: 445
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MissKalunji
you lost me a bit....

If you open showthread a second time...those get included???
Yes. The first time somebody opens showthread.php it grabs all the templates from the database and saves them to a file that is uniquely related to showthread.php. The second time somebody accesses showthread.php that file is include()ed (using that unique identifier) and there won't be any database calls.
Reply With Quote
  #23  
Old 04-15-2006, 01:59 PM
MissKalunji's Avatar
MissKalunji MissKalunji is offline
 
Join Date: Aug 2003
Location: Canada
Posts: 2,845
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ohhh ok i understand it works a bit differently then the other template cache from the other template cache hack probably why it doesnt do any errors like the other one

Thanks working fine! and my site is hacked to death!
Reply With Quote
  #24  
Old 04-15-2006, 02:05 PM
orban orban is offline
 
Join Date: Jan 2005
Posts: 445
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MissKalunji
Ohhh ok i understand it works a bit differently then the other template cache from the other template cache hack probably why it doesnt do any errors like the other one

Thanks working fine! and my site is hacked to death!
Yeah I think it does work different from the other one (also you don't have to edit any vB files).

Glad to hear it works for you

There is actually no reason it shouldn't work for any vB 3.5 installation, except that the directory can get quite big. But it saves RAM from the cached MySQL queries or something I guess. And hard drives cheaper than RAM. Not like I'll ever use my 150GB hard drive
Reply With Quote
  #25  
Old 04-15-2006, 04:02 PM
Kihon Kata Kihon Kata is offline
 
Join Date: Nov 2003
Posts: 763
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

FYI: Have had this running for one day and my templates directory is 14 megs.

We are a pretty busy site with 2,000 posts/day

Sped things up tho. I like this. Does it clean things up? of so, how and when?
Reply With Quote
  #26  
Old 04-15-2006, 04:08 PM
orban orban is offline
 
Join Date: Jan 2005
Posts: 445
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Kihon Kata
FYI: Have had this running for one day and my templates directory is 14 megs.

We are a pretty busy site with 2,000 posts/day

Sped things up tho. I like this. Does it clean things up? of so, how and when?
You can just delete it. "rm *" or something. If you want.

What do you mean by "cleaning" up? All of the files are used (even though some might be used very rarely), there is no garbage.

By the way I'm working on a plugin cache system too Without file modification of course.
Reply With Quote
  #27  
Old 04-15-2006, 04:14 PM
Kihon Kata Kihon Kata is offline
 
Join Date: Nov 2003
Posts: 763
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

^^ there Gizmo5h1t3 said "then it cleaned it self out"

Quote:
Originally Posted by orban
You can just delete it. "rm *" or something. If you want.
What does this mean?

BTW, I love this hack, it's working well. I don't really care that I have a 14 meg folder or a 150 meg folder. We are on a high speed dedicated server with a large HDD.
Reply With Quote
  #28  
Old 04-15-2006, 04:20 PM
orban orban is offline
 
Join Date: Jan 2005
Posts: 445
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Kihon Kata
^^ there Gizmo5h1t3 said "then it cleaned it self out"
The only script bit that "cleans out" the folder is when you insert/update a template, so most likely he (or somebody else in his admincp) did that.

Quote:
Originally Posted by Kihon Kata
Quote:
Originally Posted by Orban
"rm *"
What does this mean?
When you connect to your server with SSH you can change to the templates folder and remove all the files with "rm *". You can also delete them in your ftp program, but there's really no need to do that.

Quote:
Originally Posted by Kihon Kata
BTW, I love this hack, it's working well. I don't really care that I have a 14 meg folder or a 150 meg folder. We are on a high speed dedicated server with a large HDD.
I have the feeling too that it lowered the load a bit on our installation, but it's a bit hard to say tho. Great to hear it improved your performance then.

--

Is your whole site powered by vB? eg. global.php and all? that'd explain your 14mb cache folder. because I have only 4.1mb after 3 days.
Reply With Quote
  #29  
Old 04-15-2006, 05:46 PM
Kihon Kata Kihon Kata is offline
 
Join Date: Nov 2003
Posts: 763
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by orban
The only script bit that "cleans out" the folder is when you insert/update a template, so most likely he (or somebody else in his admincp) did that.



When you connect to your server with SSH you can change to the templates folder and remove all the files with "rm *". You can also delete them in your ftp program, but there's really no need to do that.



I have the feeling too that it lowered the load a bit on our installation, but it's a bit hard to say tho. Great to hear it improved your performance then.

--

Is your whole site powered by vB? eg. global.php and all? that'd explain your 14mb cache folder. because I have only 4.1mb after 3 days.
Thanks for the great support on your hack, nice to see the quick replies. Our site is semi vB powered with allot of hacks added on including vba gallery. lol We have completely custom coded beauty product review center and a beauty product swap center with wishlists etc. We have a large section outside our extremly modded up vB that isn't template driven but *IS* connected via global.php. I am assuming that since the only part of our site that is template driven is the forums, that this hack here only effects our forums. I'm also trying to figure out why it might be 14 megs, but really not too warried about it. We do cache php scripts plus we run MYSQL 4 caching

Maybe you can shed a little light or something. Thanks again for the hack
Reply With Quote
  #30  
Old 04-15-2006, 05:54 PM
orban orban is offline
 
Join Date: Jan 2005
Posts: 445
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

vba gallery. product review and swap center...if it uses templates, might be the reason too.

you can open the files by the way, and just check what's inside, there's the names of the templates.

just check that the cache for the php scripts is large enough to hold all the template cache files.
Reply With Quote
  #31  
Old 04-15-2006, 07:21 PM
DementedMindz DementedMindz is offline
 
Join Date: Jan 2006
Posts: 1,474
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MissKalunji
Thanks working fine! and my site is hacked to death!
:banana: about time to have a nice working cache... works great thanks
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:44 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05012 seconds
  • Memory Usage 2,315KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (10)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete