First, you need to use global scope, root only works if it is the first level template for the node view, and my guess is this is in a attribute template. So:
In the same template I have also a section that must be displayed only if a ezhttp template variable it's set but if I set cache_ttl to 600 this template section doesn't displayed when I click on this link: