ViewCache.ini rules question

Author Message

Joël LEGER

Monday 12 October 2009 2:07:56 am

Hi,

i can't figure out how to clean the cache of very specific case.

here is the situation SmartCacheClear is enable.
class1 -> class 2 -> class3 object relation with class4 -> class5

So i would like when a new version of the object from class5 is published that the object from class1 is clear.

so far i have this settings :

[ViewCacheSettings]
SmartCacheClear=enabled

[ViewCacheSettings]
ClearRelationTypes[]
ClearRelationTypes[]=common
ClearRelationTypes[]=reverse_common
ClearRelationTypes[]=reverse_embedded
ClearRelationTypes[]=attribute
ClearRelationTypes[]=reverse_attribute

[class5]
DependentClassIdentifier[]
DependentClassIdentifier[]=class4
DependentClassIdentifier[]=class3
DependentClassIdentifier[]=class2
DependentClassIdentifier[]=class1
ClearCacheMethod[]
ClearCacheMethod[]=object
ClearCacheMethod[]=relating
ClearCacheMethod[]=all

 

any ideas?

André R.

Tuesday 13 October 2009 5:16:33 am

viewcache.ini doesn't allow you to clear indirect relations, except with AdditionalObjectIDs[].
So if that doesn't work for you, you'll need to simplify it or create a workflow where you manually clear the viewcache.

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

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 11:24:41
Script start
Timing: Jan 18 2025 11:24:41
Module start 'layout'
Timing: Jan 18 2025 11:24:41
Module start 'content'
Timing: Jan 18 2025 11:24:42
Module end 'content'
Timing: Jan 18 2025 11:24:42
Script end

Main resources:

Total runtime0.6929 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0062 587.9141152.6250
Module start 'layout' 0.00620.0036 740.539139.4453
Module start 'content' 0.00980.6816 779.9844526.7422
Module end 'content' 0.69150.0014 1,306.72668.1641
Script end 0.6929  1,314.8906 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00390.5645160.0002
Check MTime0.00160.2358160.0001
Mysql Total
Database connection0.00080.114710.0008
Mysqli_queries0.640392.4019540.0119
Looping result0.00060.0932520.0000
Template Total0.657894.920.3289
Template load0.00240.349520.0012
Template processing0.655394.575520.3277
Template load and register function0.00050.078110.0005
states
state_id_array0.00090.125910.0009
state_identifier_array0.00060.092220.0003
Override
Cache load0.00200.2913160.0001
Sytem overhead
Fetch class attribute can translate value0.00070.107520.0004
Fetch class attribute name0.00140.201030.0005
XML
Image XML parsing0.00080.116620.0004
class_abstraction
Instantiating content class attribute0.00000.001130.0000
General
dbfile0.00080.1150170.0000
String conversion0.00000.001240.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
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 12
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs