Cache-block not expiring what am I missing?

Author Message

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 keys
but 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

Jeroen van Duffelen

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

André R.

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

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

Jeroen van Duffelen

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...

Jeroen van Duffelen

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...

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

eZ debug

Timing: Jan 18 2025 10:28:27
Script start
Timing: Jan 18 2025 10:28:27
Module start 'layout'
Timing: Jan 18 2025 10:28:27
Module start 'content'
Timing: Jan 18 2025 10:28:28
Module end 'content'
Timing: Jan 18 2025 10:28:28
Script end

Main resources:

Total runtime1.2972 sec
Peak memory usage4,096.0000 KB
Database Queries66

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0049 588.0469152.6406
Module start 'layout' 0.00490.0025 740.687539.4766
Module start 'content' 0.00741.2883 780.1641568.7109
Module end 'content' 1.29570.0014 1,348.875016.1250
Script end 1.2972  1,365.0000 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.2455160.0002
Check MTime0.00130.1026160.0001
Mysql Total
Database connection0.00070.051810.0007
Mysqli_queries1.242795.7992660.0188
Looping result0.00070.0518640.0000
Template Total1.263297.420.6316
Template load0.00210.161820.0010
Template processing1.261197.213520.6305
Template load and register function0.00020.018310.0002
states
state_id_array0.00240.182310.0024
state_identifier_array0.00150.119020.0008
Override
Cache load0.00180.1369290.0001
Sytem overhead
Fetch class attribute can translate value0.00080.064520.0004
Fetch class attribute name0.00120.089070.0002
XML
Image XML parsing0.00070.052020.0003
class_abstraction
Instantiating content class attribute0.00000.001580.0000
General
dbfile0.00070.0567170.0000
String conversion0.00000.000540.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
6content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
8content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 22
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs