Trust me it does (providing the view has not already been cached). With viewing caching on and setting cache_ttl to 0 disables the cache, but anything else has no effect and the normal caching takes over.
Looking at kernel/classes/eznodeviewfunctions.php at lines 125-140 you have:
// Check if time to live is set in template
if ( $tpl->hasVariable( 'cache_ttl' ) )
{
$cacheTTL =& $tpl->variable( 'cache_ttl' );
}
if ( !isset( $cacheTTL ) )
{
$cacheTTL = -1;
}
// Check if cache time = 0 (disabled)
if ( $cacheTTL == 0 )
{
$viewCacheEnabled = false;
}
This is what is turning the cache off if it set to 0, but does nothing else with the cache if it is set to anything else. Is this correct? eZ crew - should the cacheTTL be used if set?