flat_left.tpl menu and cache block

Author Message

Pascal France

Monday 22 October 2007 2:13:30 pm

Hi,

In my pagelayout.tpl I include 2 menus.
A topmenu:

<div id="cadreGeneralMenuHorizontal">{* POUR CENTRER LE MENU AVEC IE ! *}
    {cache-block keys=array($uri_string, $current_user.role_id_list|implode( ',' ),$current_user.limited_assignment_value_list|implode( ',' ))}
        {include uri="design:menu/menu_horizontal.tpl"}
    {/cache-block}
</div>

and a flat_left_menu:

    {cache-block keys=array($uri_string, $current_user.role_id_list|implode( ',' ), $current_user.limited_assignment_value_list|implode( ',' ))}
    <hr class="hide" />

    <div id="columns">
        {* menu name=LeftMenu *}
        {include uri="design:menu/flat_left.tpl"}
        <hr class="hide" />
    {/cache-block}

With the horizontal menu, if I hide an object and refresh the page to the frontend, the object disappears in the menu.

What I really don't understand is why I can't get the same behavior with the flat_left menu ?
I have to wait 2 hours (default cache_block time setting) before the object is removed in the menu.
Even I add:

{set-block scope=root variable=cache_ttl}0{/set-block}

at the very top of my design/cfdt/templates/menu/flat_left.tpl, the object stay visible 2 hours before being removed in the menu.

I specify that the flat_left menu include section is not under an other section or anything else.

Pascal

Ce qui embellit le désert c'est qu'il cache un puits... quelque part... (A. de Saint-Exupéry) - http://luxpopuli.fr/eZ-Publish

Pascal France

Monday 22 October 2007 4:06:31 pm

Well, in fact I have to remove the cache block lines and all works fine.

Pascal

Ce qui embellit le désert c'est qu'il cache un puits... quelque part... (A. de Saint-Exupéry) - http://luxpopuli.fr/eZ-Publish

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 19 2025 02:24:16
Script start
Timing: Jan 19 2025 02:24:16
Module start 'layout'
Timing: Jan 19 2025 02:24:16
Module start 'content'
Timing: Jan 19 2025 02:24:18
Module end 'content'
Timing: Jan 19 2025 02:24:18
Script end

Main resources:

Total runtime1.4086 sec
Peak memory usage4,096.0000 KB
Database Queries52

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0067 589.2578152.6250
Module start 'layout' 0.00670.0039 741.882839.4453
Module start 'content' 0.01061.3965 781.3281459.3984
Module end 'content' 1.40710.0014 1,240.72668.4688
Script end 1.4086  1,249.1953 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.2416160.0002
Check MTime0.00130.0956160.0001
Mysql Total
Database connection0.00140.096310.0014
Mysqli_queries1.358996.4738520.0261
Looping result0.00070.0493500.0000
Template Total1.369397.220.6846
Template load0.00180.131020.0009
Template processing1.367497.076720.6837
Template load and register function0.00020.017110.0002
states
state_id_array0.00190.133910.0019
state_identifier_array0.00240.167520.0012
Override
Cache load0.00150.1043210.0001
Sytem overhead
Fetch class attribute can translate value0.00080.055810.0008
Fetch class attribute name0.00110.077620.0005
XML
Image XML parsing0.00010.008410.0001
class_abstraction
Instantiating content class attribute0.00000.000320.0000
General
dbfile0.00070.0520100.0001
String conversion0.00000.000640.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
7content/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
3content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 17
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs