Toolbar caching trouble...

Author Message

Gabriel Ambuehl

Tuesday 15 February 2005 4:05:51 am

I created a toolbar element that should display some related objects but only for certain classes. Displaying it only for certain classes works, but ONLY when the contentobject is displayed for the first time. If the object is displayed out of the cache, the toolbar isn't displayed anymore!

I use the following template for the toolbar element:

{section show=$showforclasses_classidentifiers|contains($node.object.class_identifier)}
<div class="toolbar-item {$placement}">
    <div class="toolbox">
        <div class="toolbox-design">
            <h2>{$title}</h2>

            <div class="toolbox-content">
		CONTENT GOES HERE
           </div>
        </div>
     </div>
</div>
{/section}

Visit http://triligon.org

Gabriel Ambuehl

Tuesday 15 February 2005 8:09:51 am

When I deactivate ViewCaching (other caches are still active) it seems to work. What's going on?

Visit http://triligon.org

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 22:33:40
Script start
Timing: Jan 18 2025 22:33:40
Module start 'layout'
Timing: Jan 18 2025 22:33:40
Module start 'content'
Timing: Jan 18 2025 22:33:41
Module end 'content'
Timing: Jan 18 2025 22:33:41
Script end

Main resources:

Total runtime0.8997 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.0059 587.9063152.6250
Module start 'layout' 0.00590.0032 740.531339.4453
Module start 'content' 0.00910.8891 779.9766451.0234
Module end 'content' 0.89820.0015 1,231.00008.1641
Script end 0.8997  1,239.1641 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00370.4091160.0002
Check MTime0.00140.1554160.0001
Mysql Total
Database connection0.00070.082710.0007
Mysqli_queries0.859195.4842520.0165
Looping result0.00050.0530500.0000
Template Total0.869796.720.4348
Template load0.00220.240620.0011
Template processing0.867596.419720.4337
Template load and register function0.00030.036710.0003
states
state_id_array0.00070.081810.0007
state_identifier_array0.00140.159320.0007
Override
Cache load0.00180.198580.0002
Sytem overhead
Fetch class attribute can translate value0.00130.147310.0013
Fetch class attribute name0.00110.121820.0005
XML
Image XML parsing0.00010.013010.0001
class_abstraction
Instantiating content class attribute0.00000.000420.0000
General
dbfile0.00070.0791100.0001
String conversion0.00000.001140.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
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/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: 7
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs