Forums / Developer / Removing related objects and cache problem...

Removing related objects and cache problem...

Author Message

Joan Roca

Tuesday 21 November 2006 3:38:18 am

I have this situation:

I have an object A that has an object relation with another object B. A is related with B or B is reverse related with A. In the template view of B, B shows his reverse related objects, so object A is shown. Now, when I remove A relation to B, B is still showing A. I tried to activate smartcache like this:

[A_identifier]
DependentClassIdentifier[]
DependentClassIdentifier[]=B_identifier
ClearCacheMethod=clear_object_and_relating_objects_caches

but it still doesnt work.

any ideas?

eZ debug

Timing: Jan 18 2025 18:17:46
Script start
Timing: Jan 18 2025 18:17:46
Module start 'content'
Timing: Jan 18 2025 18:17:46
Module end 'content'
Timing: Jan 18 2025 18:17:46
Script end

Main resources:

Total runtime0.0181 sec
Peak memory usage2,048.0000 KB
Database Queries4

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0086 588.9766180.8125
Module start 'content' 0.00860.0046 769.789189.8203
Module end 'content' 0.01320.0048 859.609466.7031
Script end 0.0180  926.3125 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002312.4367120.0002
Check MTime0.00116.2394120.0001
Mysql Total
Database connection0.00094.805510.0009
Mysqli_queries0.005329.490840.0013
Looping result0.00000.126320.0000
Template Total0.004424.410.0044
Template load0.00073.839910.0007
Template processing0.003720.558610.0037
Override
Cache load0.00052.829610.0005
General
dbfile0.00042.1653100.0000
String conversion0.00000.032930.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs