cache

Author Message

risto CMS user

Tuesday 14 March 2006 3:08:37 am

{cache-block expiry=130}
...
{/cache-block}

will this work on ez 3.4.1?

Betsy Gamrat

Tuesday 14 March 2006 6:39:17 am

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

risto CMS user

Tuesday 14 March 2006 7:53:40 am

thanx lots of nice stuff.