How to delete cache for a spesific node using custom tag?

Author Message

K259

Monday 11 September 2006 1:28:58 am

I need to delete the cache for a node without empty the cache in the system totally.
How can I achieve this?

Case:
I'm testing some templatecode for an inline object in the editor made as custom tag, and adding this: {set-block scope=root variable=cache_ttl}0{/set-block} to the top of this template in:
/xx/design/standard/templates/content/datatype/view/ezxmltags don't make the content or templatecode release the cached content after changes are made or new objects are added for fetching.

Does anyone know why?

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 18:32:03
Script start
Timing: Jan 18 2025 18:32:03
Module start 'layout'
Timing: Jan 18 2025 18:32:03
Module start 'content'
Timing: Jan 18 2025 18:32:03
Module end 'content'
Timing: Jan 18 2025 18:32:03
Script end

Main resources:

Total runtime0.6435 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.0058 588.1719152.6563
Module start 'layout' 0.00580.0031 740.828139.5078
Module start 'content' 0.00890.6329 780.3359400.7734
Module end 'content' 0.64180.0016 1,181.10948.0938
Script end 0.6434  1,189.2031 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.4950160.0002
Check MTime0.00140.2156160.0001
Mysql Total
Database connection0.00090.142710.0009
Mysqli_queries0.586291.1006460.0127
Looping result0.00060.0871440.0000
Template Total0.607394.420.3036
Template load0.00230.364520.0012
Template processing0.604994.010120.3025
Template load and register function0.00020.024610.0002
states
state_id_array0.00100.155610.0010
state_identifier_array0.00080.122820.0004
Override
Cache load0.00190.295890.0002
Sytem overhead
Fetch class attribute can translate value0.00050.073710.0005
Fetch class attribute name0.00060.100910.0006
XML
Image XML parsing0.00020.035510.0002
class_abstraction
Instantiating content class attribute0.00000.000610.0000
General
dbfile0.00140.2173100.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
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/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: 7
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs