Forums / Install & configuration / How to hardcode no "Time based expiration" ?
Nico Sabbi
Tuesday 02 September 2008 8:53:44 am
Hi this page http://ez.no/doc/ez_publish/technical_manual/4_0/reference/template_functions/miscellaneous/cache_block states that the attribute expiry is hardcoded to 2 hours and can't be configured. Well, I don't want my cache blocks to expire, so is there a way where I can set a huge default value?Thanks.
André R.
Tuesday 02 September 2008 9:34:19 am
set the value to 0 in the template.
eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription @: http://twitter.com/andrerom
Ivo Lukac
Tuesday 02 September 2008 9:37:33 am
Hi Nico,
No, it states that default value is hardcoded. It also states that value of zero will produce a cache block that will never expire.
So you do it like this:
{cache-block ignore_content_expiry expiry=0} {* something which never expiries*} {/cache-block}
http://www.linkedin.com/in/ivolukac http://www.netgen.hr/eng/blog http://twitter.com/ilukac