![]() |
Template Cache System
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. https://vborg.vbsupport.ru/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. https://vborg.vbsupport.ru/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) |
Sounds really nice, i will test it.
Install ;) |
So me! Thanks!
|
That means less server loads correct?
|
very nice sir!
|
Quote:
|
Quote:
|
Well i have installed.....
Lets see what i can break now :o |
Quote:
It's really simple code so I don't think it has very large margin for errors.. |
Quote:
weeeeeeeeeeeeeee :banana: thanks! thats what i need :bunny: |
:), *hopes it hasnt broken anything* XD
|
Gets only blank pages after installed !
|
cant download it .....Invalid Attachment specified. If you followed a valid link, please notify the administrator
|
Quote:
|
There are no files created in template_cache.
Using Windows 2003, chmod not nescesary, Only Read and Hide are checked out. |
clicked installed,,,hmmm i guess it looks the same to me i guess have to wait ...great hack:bunny:
|
so far 2 of the 3 installed and its a major improvement thanks :)
|
Quote:
|
Installed and working 100%
Thanks M8 :) |
Note: There ARE no BUGS that prevent the page from showing.
Please make sure you follow the instructions to the Letter. |
i was wondering when i open the buddy list i get these... how can i cache them????
Uncached templates: BUDDYLIST (1) Uncached templates: buddylistbit (2) |
also was wondering if it would be ok to put a index file in the cache this way no one can browse it?
|
Quote:
|
Quote:
|
well i have it on the buddy pop up list in the navbar and when you click the vbshout.php?do=archive you get a bunch of uncached templates too
|
Quote:
I might have to make some slight adjustments. |
that would be tight yeah i installed all 3... there is a major difference in speeds on loading now.... :)
|
to Trigunflame that template_cache directory we had to create i'm curious do we put any files in that directory? or is that what needs to be read for the hack to work...:)
|
Installed :D It works great for me
|
Quote:
only thing i would put in there is a index.html this way no users can browse it.... but its used to store the cache files thats all |
Update:
Now caches all action templates. The cache cleaner will not delete index.htm or index.html files. Also updated the install.txt PLEASE clear the template_cache directory, after you redo the modifications. The new changes cache the actiontemplates as well. |
Opps, now I have a problem, only get blank page on some
pm.php, private.php ... so far P.S : posted it before check out the new update |
Quote:
|
how do we update it? is there code changes? or just clean cache and over write files and product?
|
Quote:
ps. the editor templates are still getting around the modification.. will have to make another minor change.. although ive only seen it affect the profile.php file as for now. |
ok thanks trying now :)
|
Quote:
|
Very nice as always Dusty.
One small thing to the action templates code: PHP Code:
|
ok i still get the uncached templates also when you go to clean the cache you get this
Parse error: parse error, unexpected T_VARIABLE in /admincp/template.php on line 85 and on that line is this if ($f != '.' && $f != '..' && $f != 'index.htm' $f != 'index.html') |
Quote:
ps. It cleaned up most of the action templates, but not all of em.. we'll see. pss. whats ur forum url. |
All times are GMT. The time now is 07:26 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|