cache-block doesn´t work

Author Message

Shan Wu

Tuesday 30 December 2008 5:53:31 am

Hi,

i have defined some cache-blocks in my pagelayout.tpl. But they don´t work. Everytime the currentdate will be shown.
can anyone help me? i can not find any way to fix it.

my code in pagelayout.tpl
{cache-block}
{currentdate()}
{/cache-block}

the settings:

[ContentSettings]
ViewCaching=enabled

[TemplateSettings]
TemplateCache=enabled
TemplateCompile=enabled
TemplateOptimization=enabled

Ivo Lukac

Tuesday 30 December 2008 10:43:49 am

Hello Shan,

Your setting looks good. Main switch for cache block is ok:
[TemplateSettings]
TemplateCache=enabled

Is this settings in right steaccess?
Did you clear ini cache?

Btw if you publish something in the tree your cache-block will expiry, could be confusing.

http://www.linkedin.com/in/ivolukac
http://www.netgen.hr/eng/blog
http://twitter.com/ilukac

Shan Wu

Monday 05 January 2009 4:10:30 am

Ivo, thanks for your reply.

I have found the error:
I have defined "TemplateCache=true" in Override Settings.

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.