attribute "can_edit" is not updated untill i clear cache

Author Message

Vytautas Germanavičius

Saturday 09 July 2005 2:07:24 pm

I add to toolbar a tool, which shows "edit", "remove" or "createhere" buttons if user has coresponding rights.
But I cannot use it, because if user (with all rights) logs in, this tool is not shown, because attribute "can_edit" is set to "false", but after clearig cashe it, becomes "true".

Does anyone know workaround, how to add tool to every page, withoiut rewriting all templates?

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

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 03:20:54
Script start
Timing: Jan 19 2025 03:20:54
Module start 'layout'
Timing: Jan 19 2025 03:20:54
Module start 'content'
Timing: Jan 19 2025 03:20:56
Module end 'content'
Timing: Jan 19 2025 03:20:56
Script end

Main resources:

Total runtime1.3957 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0077 589.4063152.6563
Module start 'layout' 0.00770.0042 742.062539.4922
Module start 'content' 0.01191.3822 781.5547461.8906
Module end 'content' 1.39410.0015 1,243.44538.1094
Script end 1.3956  1,251.5547 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.2511160.0002
Check MTime0.00140.1005160.0001
Mysql Total
Database connection0.00120.088810.0012
Mysqli_queries1.347896.5692460.0293
Looping result0.00050.0325440.0000
Template Total1.358697.320.6793
Template load0.00250.177020.0012
Template processing1.356197.164220.6780
Template load and register function0.00020.011110.0002
states
state_id_array0.00070.051310.0007
state_identifier_array0.00200.143220.0010
Override
Cache load0.00200.139770.0003
Sytem overhead
Fetch class attribute can translate value0.00090.063510.0009
Fetch class attribute name0.00150.107320.0007
XML
Image XML parsing0.00280.202110.0028
class_abstraction
Instantiating content class attribute0.00000.000420.0000
General
dbfile0.00390.2791160.0002
String conversion0.00000.002540.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
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 6
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs