Reverse related objects and smart cache clear

Author Message

Christian Johansen

Wednesday 07 March 2007 6:24:17 am

Hi,

I have this kind of relation:

- Some Folder
- Ad provider
- Ad provider 2
- Some other folder
- Ad (With Ad provider stored in an object relation)

This is all good. However - if I update "Ad provider", "Ad" fails to be updated. I have tried everything in viewcache.ini - this was my last try:

[Ad]
DependentClassIdentifier[]
DependentClassIdentifier[]=ad_provider
DependentClassIdentifier[]=ad
DependentClassIdentifier[]=folder
ClearCacheMethod[]
ClearCacheMethod[]=all
MaxParents=3

But since "reverse_related" isn't a possibility I guess this doesn't work? Has anyone got any idea how I can make this work?

Bayron Guevara

Friday 13 June 2008 7:54:40 am

Smart View Cache have a configuration directive called ClearRelationTypes which especified what type of relation are affected when you use ClearCacheMethod[]=relating, by default only common, reverse_common and reverse_xml are used. In your case put this whithin ViewCacheSettings

[ViewCacheSettings]
ClearRelationTypes[]=reverse_attribute

Web Developer & Modern Philosopher
Visit http://www.laprensa.hn, http://www.diez.hn, http://www.estilo.hn

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

Main resources:

Total runtime0.5871 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.0080 588.1641152.6563
Module start 'layout' 0.00800.0030 740.820339.5078
Module start 'content' 0.01100.5746 780.3281527.0156
Module end 'content' 0.58560.0015 1,307.34388.1094
Script end 0.5871  1,315.4531 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.5869160.0002
Check MTime0.00140.2445160.0001
Mysql Total
Database connection0.00190.323510.0019
Mysqli_queries0.540792.1047540.0100
Looping result0.00050.0843520.0000
Template Total0.552194.020.2760
Template load0.00190.315920.0009
Template processing0.550293.715820.2751
Template load and register function0.00020.038710.0002
states
state_id_array0.00110.185110.0011
state_identifier_array0.00180.313820.0009
Override
Cache load0.00150.2620170.0001
Sytem overhead
Fetch class attribute can translate value0.00040.074820.0002
Fetch class attribute name0.00100.172830.0003
XML
Image XML parsing0.00220.379820.0011
class_abstraction
Instantiating content class attribute0.00000.001130.0000
General
dbfile0.00240.4085170.0001
String conversion0.00000.001340.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
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/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.0002 secs