ViewCaching is kicking the stuffing out of my left-hand navigation. I have primary and secondary navigation in a banner, and levels 3-6 in a left-hand menu. Functionally, the menu is fine and does everything it's supposed to but for 1 small detail. The active menu item is designed to have a section-specific background color, and with ViewCaching turned on these highlighted elements slowly start disappearing until the feature no longer appears at all.
Is there any way at all to hide things from the caching mechanism? Can I say "View Caching yes, but not right here"?
> Thursday 15 December 2005 12:34:58 pm > You could try turning off view caching in that template and then use cache blocks. That might work.
Yes, that's exactly the lever I'm looking for. In my current (very limited) understanding of eZp, ViewCaching is a global setting which is either enabled or disabled in site.ini(.append.php) If there is a way to exclude blocks of code from this caching it's still beyond my ken.
Is this how it's done?
> So put:
> {set-block scope=global variable=cache_ttl}0{/set-block}
> at the top.
> > But use {cache-block} to wrap everything else apart from your dynamic bit.
I don't think I'm following, could you please repeat that in another example?
The stuff I'd like to exclude from ViewCaching is in a template of its own, included in
pagelayout.tpl. {include uri="design:leftnavi.tpl"}