How to clear the cache of a non parent object ?

Author Message

Xavier Dutoit

Thursday 17 November 2005 3:18:30 am

Hi,

I have a page (a folder) that displays the latest links (a custom template with a tree fetch filtered on classtype=links.

The problem is that when I publish a new link, this page isn't updated.

On the viewcache.ini.append.php, I've tried to add the object id:

[link]
DependentClassIdentifier[]
DependentClassIdentifier[]=folder
ObjectFilter[]
ObjectFilter[]=<home page id>
ObjectFilter[]=<latest links id>
ClearCacheMethod=clear_object_caches_only

The cache is cleared fine for the home page, but isn't for the latest links page (that isn't a parent of the link).

How do you clear non parent nodes ?

I tought about relating my "latest links" page to the home page and change the clear cache method to clear both the object and the related objects, but I find it quite an ugly hack.

Do you have a suggestion ?

X+

http://www.sydesy.com

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 04:38:36
Script start
Timing: Jan 19 2025 04:38:36
Module start 'layout'
Timing: Jan 19 2025 04:38:36
Module start 'content'
Timing: Jan 19 2025 04:38:38
Module end 'content'
Timing: Jan 19 2025 04:38:38
Script end

Main resources:

Total runtime1.0883 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.0043 590.4063152.6406
Module start 'layout' 0.00430.0026 743.046939.4766
Module start 'content' 0.00701.0798 782.5234467.1484
Module end 'content' 1.08680.0014 1,249.67198.1250
Script end 1.0882  1,257.7969 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00300.2729160.0002
Check MTime0.00120.1136160.0001
Mysql Total
Database connection0.00060.054910.0006
Mysqli_queries1.044395.9548460.0227
Looping result0.00060.0594440.0000
Template Total1.060097.420.5300
Template load0.00210.197320.0011
Template processing1.057897.202720.5289
Template load and register function0.00010.010310.0001
states
state_id_array0.00090.081310.0009
state_identifier_array0.00130.118420.0006
Override
Cache load0.00170.1604140.0001
Sytem overhead
Fetch class attribute can translate value0.00080.076110.0008
Fetch class attribute name0.00070.065220.0004
XML
Image XML parsing0.00050.048210.0005
class_abstraction
Instantiating content class attribute0.00000.000420.0000
General
dbfile0.00150.1412160.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
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
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: 6

Time used to render debug report: 0.0001 secs