![]() |
Plugin Based Template Cache
|
sounds cool
|
tried this, only concern is, as ppl browse the board, its adding files in the "templates" folder, of approx 250kb EACH...
is this a continuous thing, or does it clear itself after a while? itll end up witrh the folder being massive?? **EDIT** had this running for 10 minutes, and alreadfy the "template" folder is 6 mb in size???? |
my question
how is it compare to this other guys template cache system hack? |
Quote:
Thats normal...it saves each template |
i think i might try this one compared to the other one... i like how it clears out auto.. will check it out soon :) thanks... plus hes not even on no more and i dont think will be updating it
|
ok another question when we Create a directory templates... now is there a way we could add a index.html or .php to it... as i think it wouldnt be to wise to have it open to public
|
does it works for you?
|
Quote:
|
Quote:
|
yeah im going to after i watch this game.. but if you do it first let me know how it goes :)
|
/me clicks installed and works well! very well! no error so far
|
Quote:
Yes, it WILL stop eventually, when every possible page has been browsed to. It's normal that the files get created over time, because when you install it/clear the cache, it might take a while until a user goes to the FAQ page for example. Quote:
Also it's really no problem to have these files public because they just define variables, no output anyway. -- The worst thing that can happen is that it won't create any files, and even if that happens you won't notice any errors. :) |
Installed! So, how big will the directory get? Mine is getting huge in 5 mins.
|
the same size that your template has
|
Quote:
It shouldn't get bigger than 10-20mb though I'd say. If it does there's something wrong. |
mine went up to just short of 11 meg, then it cleaned itself out.......quality
|
Well, did you edit/insert a template?
|
nice one
|
Quote:
you lost me a bit.... If you open showthread a second time...those get included??? |
Quote:
|
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! |
Quote:
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 :D |
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? |
Quote:
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. |
^^ there Gizmo5h1t3 said "then it cleaned it self out"
Quote:
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. :) |
Quote:
Quote:
Quote:
-- 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. |
Quote:
Maybe you can shed a little light or something. Thanks again for the hack |
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. |
Quote:
|
Quote:
Quote:
|
ok quick question will this cache every thread and all cause it seems like when i jump to a new thread it caches that.... am i correct on that?
|
No?
It caches all the templates needed for showthread.php, one time, and that's it. |
also it would be nice if when updating a template only that one template was erased cause if not it will erase every template
|
Quote:
|
I added template cache.beta.php. Read the green text on how to use that file.
Greatly improved the performance of my board. |
using the beta forum seems to be loading faster and 1 query less
|
Are you using APC? And PHP 4 or 5? So I can make sure it works on different installations and put it out of beta.
|
Quote:
|
Oh one thing! my welcome panel isnt showing anymore.....
|
All times are GMT. The time now is 04:54 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:
|