![]() |
?? Uncached Template ??
Copied from vB.com: http://www.vbulletin.com/forum/showthread.php?t=262272
I have an uncached template from a recent modification I added (https://vborg.vbsupport.ru/showthread.php?t=171918) http://img169.imageshack.us/img169/2...emplateaf8.gif How can I make this template (and any other future uncached templates) cached so no unneccesary queries are called? I've tried editing the index.php file to include the template in the "pre-cache templates used by all actions" section: Code:
// pre-cache templates used by all actions Thanx, Jacquii. |
He should have added this plugin as well to the xml
Code:
<plugin active="1"> |
WONDERFUL! Thanx so much for you help!
Jacquii. |
im lazy like that :)
|
Tsk..Tsk.. Ryan. Shame on you. ;)
|
If this template is only used on certain pages you show wrap the cache in a conditional for example if it was only the index.php page:
PHP Code:
PHP Code:
|
And how would you do something like both of those for multiple templates being cached?
|
PHP Code:
|
Or:
PHP Code:
|
Thank you, sir. I thought that should be included in case anyone stumbles onto this and won't have to ask for that now. ;)
|
Quote:
PHP Code:
|
Organized code? Who needs that! I like writing everything on one line.
|
Quote:
|
This is a great reference thread.
|
Quote:
|
Quote:
|
Quote:
Quote:
Quote:
Jacquii. |
an uncached template isn't something to lose sleep over anyway. i never cache templates unless my work includes a custom file.
|
Quote:
|
Quote:
Jacquii. |
Quote:
|
Quote:
|
You keep talking like that and I'm gonna want to download all your stuff and install it. Talk like that gets me hot! ;)
|
mhm
|
Which means...? ;)
|
sound it out :)
|
I forgot the sarcasm tags on my post, sorry about that. ;)
|
Quote:
Jacquii. |
Quote:
Uncached templates: Marquee_Text (1) Uncached templates: quickreply_addon (1) Uncached templates: smilies_quickreply (1) |
Admin CP > Plugins & Products > Plugins Manager > [Add New Plugin]
Hookname: cache_templates PHP Code: PHP Code:
|
|
Thank you!!
|
Should work if you list it there. But you have to clear cache :)
|
This is a Great thread, but I found a much easier way of handling this issue.
I had it installed and forgot about it, and remembered it when I ran into these issues again after browsing this forum. Check it out "ZH - Template Cache". Just a awesome Mod People. Just add your uncached templates and your done. !! :) Thanks, |
Quote:
|
All times are GMT. The time now is 05:57 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:
|