Forums / Developer / How to disable caching for a given template
Chad Paulson
Saturday 12 January 2008 4:28:26 pm
I am working on an Exponential-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, Exponential 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/Exponential/documentation/incoming/how_to_set_cache_expire_time_or_disable_cache_in_template
André R.
Sunday 13 January 2008 2:12:35 am
There are several caches in Exponential the cache_ttl setting would only disable it on a node templates (the ones with content/view system url), it is known as 'view cache'.
http://ez.no/developer/forum/developer/user_parameters_cause_cache_trouble_solvedhttp://ez.no/developer/forum/setup_design/no_cache_settings_work
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