problem with cache-block

Author Message

justin kazadi

Thursday 07 August 2008 2:56:21 am

hello,
i want to use the cache-block that will not expire when a node is published, but i don't understand why it didn't work. my code is:

{cache-block ignore_content_expiry}
          
          {section name=article loop=fetch('content','list', hash(parent_node_id,169))}
          <a href={$article:item.url_alias|ezurl()}>{$article:item.object.name}</a><br/>
          {/section}
{/cache-block}

when a new node is published , the cache-block expired so the list is updated.
thanks in advance.

The theory is when we know everything and nothing works.
The practice is when everything works and nobody knows why.
If the practice and theory are met, nothing works and we do not know why.

Albert Einstein

André R.

Thursday 07 August 2008 3:09:33 am

You are running 4.0 or 3.10 ?
I think there was a bug introduced in one or both of them, and it should be fixed in the 4.0.1rc2/3.10.1rc2 version.

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

justin kazadi

Thursday 07 August 2008 3:15:27 am

thanks again André R for your answer.i am using ez 4.0.
i try to make it run since 4 hours.

The theory is when we know everything and nothing works.
The practice is when everything works and nobody knows why.
If the practice and theory are met, nothing works and we do not know why.

Albert Einstein

André R.

Thursday 07 August 2008 3:48:47 am

http://issues.ez.no/IssueView.php?Id=12175&ProjectId=3&Anchor=Comment256663

It's a 4.0.0 issue, it is fixed in 4.0.1 (also in rc2)

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

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 31 2025 05:30:39
Script start
Timing: Jan 31 2025 05:30:39
Module start 'layout'
Timing: Jan 31 2025 05:30:39
Module start 'content'
Timing: Jan 31 2025 05:30:39
Module end 'content'
Timing: Jan 31 2025 05:30:39
Script end

Main resources:

Total runtime0.0171 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0059 588.1328151.2109
Module start 'layout' 0.00590.0027 739.343836.6484
Module start 'content' 0.00850.0067 775.992294.2656
Module end 'content' 0.01530.0017 870.257833.9922
Script end 0.0170  904.2500 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002615.3920140.0002
Check MTime0.00126.9184140.0001
Mysql Total
Database connection0.00095.445610.0009
Mysqli_queries0.002313.631330.0008
Looping result0.00000.058710.0000
Template Total0.00148.010.0014
Template load0.00116.230910.0011
Template processing0.00031.764910.0003
Override
Cache load0.00074.185110.0007
General
dbfile0.00179.685280.0002
String conversion0.00000.047540.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs