Forums / Developer / How to disable ViewCache for some class object ?
Martynas Bilevičius
Saturday 10 May 2008 4:40:09 am
Hi,
I have created some object of my own created class and enabled ViewCache. But what i want that, my object should never be cached only compiled. Maybe thereare some ini settings where i can tell do not cache some class of objects ?
André R.
Sunday 11 May 2008 6:03:36 am
Put this in the first line of your full node view template for that class:
{set-block scope=global variable=cache_ttl}0{/set-block}
The number is cache time to live(ttl) in miliseconds for view cache (view as in module view, aka the module_result.content thing you see in your pagelayout).
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