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