Forums / Setup & design / cache-block doesn´t work
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=enabledTemplateOptimization=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
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.