Author Topic

Betsy Gamrat

Tuesday 14 March 2006 6:39:17 am

Comment7118

You may also want to set the keys for the block to ensure the caching is properly preserved for each node.

{cache-block keys=array('template_name',$node.node_id)}

{/cache-block}

Also - you can cache pieces of the template, which is awesome. I have some templates that deliver real-time (date/time sensitive) content in addition to content that is valid for 24 hours.

If you find the wrong content is displayed, you may want to disable content-caching - in site.ini.append.php. I set them as overrides instead of siteaccess - this seemed to avoid problems with the 3.7.3 admin console.

[ContentSettings]
ViewCaching=disabled

[TemplateSettings]
TemplateCache=enabled
TemplateCompile=enabled