Forums / Developer / Cache-block not expiring what am I missing?
Jeroen van Duffelen
Thursday 17 September 2009 10:04:13 am
In the pagelayout.tpl I have a cache-block like :
non cache-block: {currentdate()|datetime('custom', '%Y-%m-%d %H:%i:%s')} {cache-block keys = array($current_node_id, $module_result.uri, $user_hash) subtree_expiry = $primary_menu_root_node_id} cache-block: {currentdate()|datetime('custom', '%Y-%m-%d %H:%i:%s')} {/cache-block}
When I update the node with the primary menu root node, the cache-block should expire. But it doesn't. I have tried: - switching off the ViewCache - adding cache_ttl = 0 to the top of the pagelayout.tpl - only using the subtree_expiry without the keysbut nothing helps.
These are my settings:
[TemplateSettings] Debug=disabled DevelopmentMode=disabled ShowUsedTemplates=disabled ShowXHTMLCode=disabled TemplateCache=enabled TemplateCompile=enabled CompileComments=disabled TemplateCompression=disabled TemplateOptimization=enabled UseFormatting=disabled
What I'm I missing here... :S
André R.
Thursday 17 September 2009 12:43:11 pm
What version are you running? there was some issues like this fixed in earlier 4.0.x versions.
eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription @: http://twitter.com/andrerom
Thursday 17 September 2009 1:30:20 pm
We're running 4.0.6.
Just made a dummy design with only a pagelayout.tpl on http://www.cmandev.com/
So the only code I'm using in the pagelayout is the code posted above. I changed to $primary_menu_root_node_id to the real ID but it still doesn't work :S
Thursday 17 September 2009 2:19:46 pm
Are you running in cluster mode? Found a issue that might be the one your experiencing:http://issues.ez.no/IssueView.php?Id=13393
Thursday 17 September 2009 2:30:13 pm
Nope, not running cluster mode. Just a single install on one server with MySQL on it. When I do a manual "Clear Content Cache" in the admin panel it works ofcourse. But not automatically...
Thursday 17 September 2009 4:07:46 pm
Just did a standard installation of 4.2.0Rc1 and it works fine.. so it should be a bug in 4.0.6...