Forums / Setup & design / cache blocks with include operator

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

eZ debug

Timing: Jan 18 2025 16:08:12
Script start
Timing: Jan 18 2025 16:08:12
Module start 'content'
Timing: Jan 18 2025 16:08:13
Module end 'content'
Timing: Jan 18 2025 16:08:13
Script end

Main resources:

Total runtime0.6998 sec
Peak memory usage4,096.0000 KB
Database Queries55

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0072 588.8672180.8281
Module start 'content' 0.00720.6859 769.6953531.8672
Module end 'content' 0.69320.0066 1,301.562542.1016
Script end 0.6997  1,343.6641 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.4565140.0002
Check MTime0.00140.1982140.0001
Mysql Total
Database connection0.00080.117510.0008
Mysqli_queries0.657393.9211550.0120
Looping result0.00050.0738530.0000
Template Total0.671896.020.3359
Template load0.00190.267520.0009
Template processing0.669995.725420.3349
Template load and register function0.00020.032310.0002
states
state_id_array0.00110.163910.0011
state_identifier_array0.00190.271520.0009
Override
Cache load0.00150.2137240.0001
Sytem overhead
Fetch class attribute can translate value0.00050.071720.0003
Fetch class attribute name0.00110.161730.0004
XML
Image XML parsing0.00090.133820.0005
class_abstraction
Instantiating content class attribute0.00000.001430.0000
General
dbfile0.00240.3364190.0001
String conversion0.00000.001030.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
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 13
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs