Forums / Developer / cache-block problem

cache-block problem

Author Message

Vytautas Germanavičius

Friday 16 September 2005 6:55:43 am

i have
{cache-block keys=array($uri_string, $current_user.contentobject_id}

... form to create object, which is shown, if user has rights to create object ...

{/cache-block}

Problem, that after i create object, this cache-block becomes empty. And it remains empty, untill clear all cache

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

Lex 007

Friday 16 September 2005 7:01:21 am

missing ) problem ?

{cache-block keys=array($uri_string, $current_user.contentobject_id<b>)</b>}

Vytautas Germanavičius

Friday 16 September 2005 7:26:37 am

NO, this was simple mistiping in post...

{cache-block keys=array($uri_string, $current_user.contentobject_id)}
   {tool_bar name=inner_left view=full}
{/cache-block}

This is is somehow related with cache, toolbar, and/or updating of $node.object.can_create_class_list.

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

eZ debug

Timing: Jan 18 2025 19:09:18
Script start
Timing: Jan 18 2025 19:09:18
Module start 'content'
Timing: Jan 18 2025 19:09:18
Module end 'content'
Timing: Jan 18 2025 19:09:18
Script end

Main resources:

Total runtime0.0218 sec
Peak memory usage4,096.0000 KB
Database Queries4

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0064 589.0391180.8438
Module start 'content' 0.00640.0089 769.882893.9609
Module end 'content' 0.01520.0064 863.843870.7031
Script end 0.0216  934.5469 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002611.9117120.0002
Check MTime0.00115.0746120.0001
Mysql Total
Database connection0.00094.312910.0009
Mysqli_queries0.002511.599340.0006
Looping result0.00000.055920.0000
Template Total0.005726.310.0057
Template load0.00094.252610.0009
Template processing0.004821.983210.0048
Override
Cache load0.00062.689710.0006
General
dbfile0.004922.4720100.0005
String conversion0.00000.018630.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

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

Time used to render debug report: 0.0003 secs