Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Template Cache System Details »
Template Cache System
Mod Version: 2.5.4.0, by Trigunflame (Member) Trigunflame is offline
Developer Last Online: Nov 2019 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.5.4 Rating: (5 votes - 4.80 average) Installs: 138
Released: 12 Mar 2006 Last Update: 14 Mar 2006 Downloads: 617
Not Supported Code Changes Additional Files  

Vbulletin Template Cache System
Optimize Your Forums!!


Notice:

While filesystem caching does provide a performance increase; it can be futher increased. I plan on including mmcache, eaccelerator, and APC shared memory support in the near future.

This will eliminate the need for reading/writing file to and from the filesystem.


Summary:

This modification will cache the templates that your forum uses to the file system saving you a mysql query.

Normally this data is requested from the database on every page load, with this however we cache all the templates we would normally use into a file to be included as a standard php code.

This will save you a pretty large query, the full size of the templates can be anywhere from 40kb to 200kb per page; even larger on some forums.

It will literally take 1 or 2 minutes to install, not long for the benefits that you receive.

PS. Use this in conjunction with my Other Hack (Compress Forum Templates) for speeding up your forum even more by compressing templates.
http://www.vbulletin.org/forum/showthread.php?t=107615
PS. Use this in conjunction with my Other Hack (Accelerated Plugins) for speeding up your forum even more by Inlining your plugins.
http://www.vbulletin.org/forum/showthread.php?t=107315


Instructions:

1. Download Zip File.
2. Read the INSTALL.txt
3. Click install if you like


Updates:
3/14/2006 8:34am : Large update, adding additional file locking code as well as moved some redundant code into functions. If you have an active site I recommend that you update with the newest version.

3/14/2006 7:07am : Cleaned up the code a little bit, no need to redo the edits unless you are a perfectionist like myself

3/13/2006 12:52 / Typo Update: There was a typo in the global.php edit, please re-do that step.

3/13/2006 11:48 / Massive Critical Update:
1. Automatically caches any uncached templates.
2. Files are now stored as .php files to prevent easy viewing.
I strongly recommend you update ASAP.
Just follow the INSTALL.txt and go through the procedures again.
PS. Make sure to empty the template_cache directory after upgrading. Thankyou.

3/12/2006 12:20pm
1. Now caches most action templates
2. The cache cleaner will not delete index.htm or index.html files.
3. Also updated the install.txt
4. Fixed parse error.
To upgrade, just re-do the code modifications listed in the install.txt file.
PLEASE clear the template_cache directory, after you redo the modifications. The new changes cache the actiontemplates as well.


Troubleshooting:

Start browsing your forum, going to your main page then browsing threads etc.. should start seeing items appear in that template_cache directory such as index_1.php, showthread_1.php etc.. if not you need to give this directory WRITE permissions (CHMOD 777)

Download Now

Only licensed members can download files, Click Here for more information.

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Add-On Releases Template Cache lendy vBulletin 3.6 Add-ons 81 08 Oct 2010 08:56

Comments
  #2  
Old 12 Mar 2006, 12:57
TCattitude's Avatar
TCattitude TCattitude is offline
 
Join Date: Oct 2004
Sounds really nice, i will test it.
Install
Reply With Quote
  #3  
Old 12 Mar 2006, 13:03
klaush klaush is offline
 
Join Date: Oct 2005
So me! Thanks!
__________________
Greetings

Klaus
Reply With Quote
  #4  
Old 12 Mar 2006, 13:03
MissKalunji's Avatar
MissKalunji MissKalunji is offline
 
Join Date: Aug 2003
Real name: Mj Bain
That means less server loads correct?
__________________
____________
BossLady
Reply With Quote
  #5  
Old 12 Mar 2006, 13:04
horseUSA horseUSA is offline
 
Join Date: Feb 2006
very nice sir!
Reply With Quote
  #6  
Old 12 Mar 2006, 13:06
Trigunflame's Avatar
Trigunflame Trigunflame is offline
 
Join Date: Aug 2002
Real name: Dusty Burns
Originally Posted by MissKalunji
That means less server loads correct?
Indeed, and thats always a good thing
Reply With Quote
  #7  
Old 12 Mar 2006, 13:08
Trigunflame's Avatar
Trigunflame Trigunflame is offline
 
Join Date: Aug 2002
Real name: Dusty Burns
Originally Posted by horseUSA
very nice sir!
Thanks, its a small modification but it does help
Reply With Quote
  #8  
Old 12 Mar 2006, 13:13
bashy bashy is offline
 
Join Date: Nov 2005
Well i have installed.....
Lets see what i can break now
__________________
Bashy

Bashys Place ~ Bashys Hosting
Reply With Quote
  #9  
Old 12 Mar 2006, 13:16
Trigunflame's Avatar
Trigunflame Trigunflame is offline
 
Join Date: Aug 2002
Real name: Dusty Burns
Originally Posted by bashy
Well i have installed.....
Lets see what i can break now
I dont think it should break anything.. but then again things do happen.. I tested it with plugins, phrases, new templates etc.. and it worked fine for me...

It's really simple code so I don't think it has very large margin for errors..
Reply With Quote
  #10  
Old 12 Mar 2006, 13:26
MissKalunji's Avatar
MissKalunji MissKalunji is offline
 
Join Date: Aug 2003
Real name: Mj Bain
Originally Posted by Trigunflame
Indeed, and thats always a good thing

weeeeeeeeeeeeeee :banana: thanks! thats what i need :bunny:
__________________
____________
BossLady
Reply With Quote
  #11  
Old 12 Mar 2006, 14:19
Trigunflame's Avatar
Trigunflame Trigunflame is offline
 
Join Date: Aug 2002
Real name: Dusty Burns
, *hopes it hasnt broken anything* XD
Reply With Quote
  #12  
Old 12 Mar 2006, 14:22
Robru's Avatar
Robru Robru is offline
 
Join Date: Aug 2005
Gets only blank pages after installed !
Reply With Quote
  #13  
Old 12 Mar 2006, 14:34
DementedMindz DementedMindz is offline
 
Join Date: Jan 2006
cant download it .....Invalid Attachment specified. If you followed a valid link, please notify the administrator
Reply With Quote
  #14  
Old 12 Mar 2006, 14:34
Trigunflame's Avatar
Trigunflame Trigunflame is offline
 
Join Date: Aug 2002
Real name: Dusty Burns
Originally Posted by DementedMindz
cant download it .....Invalid Attachment specified. If you followed a valid link, please notify the administrator
Try again.
Reply With Quote
  #15  
Old 12 Mar 2006, 14:49
Robru's Avatar
Robru Robru is offline
 
Join Date: Aug 2005
There are no files created in template_cache.
Using Windows 2003, chmod not nescesary, Only Read and Hide are checked out.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

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


New To Site? Need Help?

All times are GMT. The time now is 14:45.

Layout Options | Width: Wide Color: