View Full Version : *Bashes Template Cache* Work, damn you!


squall14716
8th July 2003, 11:39 PM
One thing I've noticed about vB3 is that the template cache, well, doesn't work. Nope, it just doesn't work. Why? I don't know, it just doesn't.

Maybe it's the fact that they are custom templates? But why would that matter at all? Say I have this code:
$globaltemplates = array(
'SHOUTBOX',
'shoutbox_shoutbits',
'shoutbox_topshouters',
'shoutbox_editshout',
'shoutbox_deleteshout',
);

Why shout I bother doing that? Those are all the templates that are used, but does that matter? No, because I still end up with 10 queries because it's saying they aren't cached. Why the hell aren't they cached? I put them ti the template cache. Shouldn't that be good enough?

On an unrelated note, what the hell is the permissions array?

fury
9th July 2003, 01:15 AM
That's basically the same thing I did when coding my Shoutbox. I created them as custom templates first. The template cache was similar to the one you're using, and it worked.

Turn on debug mode and check which ones are highlighted in red. (Or is that what you did?)

squall14716
9th July 2003, 01:50 AM
Ok, good point. It was all the newpost things that was causing all the trouble... You'd think they'd be cached somewhere by default...

fury
9th July 2003, 06:18 AM
They are if you define('GET_EDIT_TEMPLATES', true);

Floris
14th July 2003, 01:08 PM
lol, I didn't even notice this - updates some special section of the web site with this :*grin*: