Wednesday 25 January 2006 5:41:33 am
I'm fighting this cache problem... I now have a finished site which works fine when caching is off, except it's pretty slow. So I tried some caching. I implemented two cache-blocks in my pagelayout, and it helped a little. Then I did:
[ContentSettings]
TranslationList=nor-NO
ViewCaching=enabled
PreViewCache=enabled
[TemplateSettings]
Debug=disabled
TemplateCache=enabled
TemplateCompile=enabled
TemplateCompression=enabled
TemplateOptimization=enabled
ShowUsedTemplates=disabled
Worked through the templates to have them cached, then looked forward to a speedy eZ site :) Unfortunately all I got were blank pages. Then I disabled compression and optimization and I got reasonably fast pages. However, new content was not published to the page? Also, some images disappeared from the cached pages. How long are pages cached? And how can I have a speedy site with caching but still be able to publish new material? Must I clear the cache everytime I publish something? Also: I'm not using $node in pagelayout.tpl as I've learned that that brings me nowhere with cached pages :)
|