cache blocks with include operator

Author Message

Mickel Scofield

Tuesday 26 June 2007 3:38:11 am

Hi;

I'm using à two tmplates pattern;

template A:

{cache-block key=.....}
doing some calcul
fetching nodes
{foreach $nodes as $node}
{node_view_gui content_node=$node view="templateB"}
{/foreach}
{/cache-block}

The pb is ; i don't wont template B to be cached i've tried à {set-block scope=root variable=cache_ttl}0{/set-block} with no big results.

Thanks in advance.

André R.

Tuesday 26 June 2007 6:07:18 am

Move it out of the cache block, this kind of functionality is not currently possible I'm afraid.

It is possible in the template component, and ez publish 4.0.
You can read more on it here:
http://ez.no/doc/components/view/trunk/(file)/introduction_Template.html#caching

ps:
{set-block scope=root variable=cache_ttl}0{/set-block}
is for view-cache, not cache block

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 04:33:46
Script start
Timing: Jan 31 2025 04:33:46
Module start 'layout'
Timing: Jan 31 2025 04:33:46
Module start 'content'
Timing: Jan 31 2025 04:33:46
Module end 'content'
Timing: Jan 31 2025 04:33:46
Script end

Main resources:

Total runtime0.0142 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.0055 588.2344151.2109
Module start 'layout' 0.00550.0021 739.445336.6484
Module start 'content' 0.00760.0052 776.093890.1563
Module end 'content' 0.01280.0014 866.250029.9922
Script end 0.0142  896.2422 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002417.0828140.0002
Check MTime0.00117.6580140.0001
Mysql Total
Database connection0.00074.846410.0007
Mysqli_queries0.002416.672530.0008
Looping result0.00000.083710.0000
Template Total0.00107.210.0010
Template load0.00096.005210.0009
Template processing0.00021.207410.0002
Override
Cache load0.00064.193310.0006
General
dbfile0.00096.286580.0001
String conversion0.00000.062040.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