Thursday 18 December 2008 4:04:40 am
Hello All, In my pagelayout I have the following statement for a cache-block (at the absolute top of the file):
{def $current_node=fetch('content','node',hash('node_id',$module_result.content_info.node_id))}
{cache-block subtree_expiry=$uri_string keys=array($uri_string,$current_node.node_id)}
1) I'm using a 'current_node' to check in my pagelayout for certain values of the current_node (for example: show_in_menu, whether the page should be underline in the menu or not). Is that good practice, or should I avoid this at all costs? 2) the cache-block has a <b>subtree_expiry</b> with <b>$uri_string</b>, and the keys also related to that. This is to make sure that (for example) the menu doesn't look the same in all the pages (and also has to do with the logic, that is a bit different when loading a different node_id). Is this good practice? Now, my <b>error.log</b> is full of:
Could not find path_string for 'subtree_expiry' node.
[ Dec 18 2008 02:01:25 ] [xx.xx.xx.xx] eZTemplateCacheFunction::subtreeExpiryCacheDir():
So this is probably related to that cache-block? My settings (cache etc) - for a production environment (which also results in these errors):
[ContentSettings]
ViewCaching=enabled
PreViewCache=disabled
[TemplateSettings]
TemplateCache=enabled
TemplateCompile=enabled
TemplateOptimization=disabled
Debug=enabled
ShowXHTMLCode=disabled
ShowUsedTemplates=disabled
DevelopmentMode=disabled
Next to this I also have a couple of the following errors in my error.log:
[ Dec 18 2008 XX:XX:XX ] [X.X.X.X] eZFileHandler::unlink:
Failed unlinking file var/siteaccess/cache/template-block/subtree/2/cache/2/7/4/2748722210.cache.gen
3) Is all of this related, and does anyone recognize the errors and know a (partial) improvement or solution? Thanks for any input, it already cost me quite a lot of time. Clemens
|