Log in

View Full Version : caching template question


Wired1
04-23-2006, 11:54 PM
I'd like to cache a template on a "do?=extra" within a hack of mine. The template is named "page" (imaginative, I know).

Would this be the correct plugin to add into my product, or is there a more graceful way to do it?


<plugin active="1">
<title>Caching the "page" template</title>
<hookname>cache_templates</hookname>
<phpcode><![CDATA[

$actiontemplates = array(
'extra' => array(
'page',
)

$actiontemplates['updateextra'] =& $actiontemplates['extra'];

]]></phpcode>
</plugin>