Saturday 12 January 2008 4:28:26 pm
I am working on an eZ Publish-based site which has caching disabled. We are running into issues where certain templates are still being cached and we want to make sure, 100%, that every time you view a certain template, it displays current data. I understand that even if you have caching disabled, eZ Publish will still cache certain views, roles, sessions, etc. I ran across an article that explains how to turn off caching on the template level (URL below) and I was wondering if this solution would solve my caching problem. My solution is to put the following piece of code in the first line of a given template we do not want cached (even if it is being included in another template). {set-block scope=root variable=cache_ttl}0{/set-block} Will this work as expected? Thanks in advance! http://ez.no/ezpublish/documentation/incoming/how_to_set_cache_expire_time_or_disable_cache_in_template
|