Viewcache problems with custom classes

Author Message

Kostadinka Ignatieva

Monday 10 August 2009 4:21:18 am

Hi again, eZ Flow team!

For clearing the view cache of 'frontpage' objects, I am using rules like this:

[article]
AdditionalObjectIDs[]
AdditionalObjectIDs[]=XXX

and they are working ok. But I have a problem with view cache of objects of other custom classes that use the 'Layout' content class attribute. Even if I put their objectIDs in settings, their view cache is not cleared. I tried many kinds of viewcache rules like:

DependentClassIdentifier[]
DependentClassIdentifier[]=frontpage
DependentClassIdentifier[]=custom_class
ClearCacheMethod[]
ClearCacheMethod[]=object
ClearCacheMethod[]=parent
ClearCacheMethod[]=relating
AdditionalObjectIDs[]

but nothing works. The only way is to set cache_ttl to some value in the full view template of the 'custom_class'.

I want to ask if anybody had a similar problem and how it can be solved with viewcache rules.

Thanks in advance!

Iguana IT - http://www.iguanait.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 18 2025 04:30:56
Script start
Timing: Jan 18 2025 04:30:56
Module start 'layout'
Timing: Jan 18 2025 04:30:56
Module start 'content'
Timing: Jan 18 2025 04:30:56
Module end 'content'
Timing: Jan 18 2025 04:30:56
Script end

Main resources:

Total runtime0.1534 sec
Peak memory usage4,096.0000 KB
Database Queries48

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0090 588.0625152.6406
Module start 'layout' 0.00900.0034 740.703139.4766
Module start 'content' 0.01240.1395 780.1797433.6172
Module end 'content' 0.15190.0015 1,213.79698.1328
Script end 0.1534  1,221.9297 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00362.3408160.0002
Check MTime0.00140.9004160.0001
Mysql Total
Database connection0.00120.798310.0012
Mysqli_queries0.098964.4283480.0021
Looping result0.00060.4219460.0000
Template Total0.093260.820.0466
Template load0.00241.574320.0012
Template processing0.090859.168820.0454
Template load and register function0.00020.118610.0002
states
state_id_array0.00150.972410.0015
state_identifier_array0.00161.053020.0008
Override
Cache load0.00191.2614200.0001
Sytem overhead
Fetch class attribute can translate value0.00080.520710.0008
Fetch class attribute name0.00070.447010.0007
XML
Image XML parsing0.00010.097110.0001
class_abstraction
Instantiating content class attribute0.00000.003310.0000
General
dbfile0.00090.6007100.0001
String conversion0.00000.005740.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
3content/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
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 8
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs