Thursday 03 May 2007 6:25:40 am
Hi, I have a strange problem with caching. I enabled on my site.ini.append.php the following settings:
[ContentSettings]
ViewCaching=enabled
[TemplateSettings]
TemplateCache=enabled
TemplateCompile=enabled
In my pagelayout.tpl I have a cache-block with a variable that changes a div id when the section changes:
{cache-block keys=$uri_string}
{def $section=fetch( 'section', 'object', hash( 'section_id', $node.object.section_id ) )}
<div id="topcontent-{$section.name|wash}">
...
</div>
{/cache-block}
If I clear the cache, the site works and if I navigate to differents sections the div id changes. But, sometimes, it doesn't work at all because div id doesn't change untill I clear the cache again. eZpublish version is 3.7.2. Thank you!
|