Smart viewcache clear setttings per class - not enough

Author Message

Piotrek Karaƛ

Thursday 15 May 2008 4:19:20 am

Hi,

Smart viewcache clear rules are set per content class, which means that you can only define one MaxParents value for particular class, for example. Does anyone else see the need for a more complex assignment method, for example per class globally or per class+conditions?

Example: we like to have one class for comments, and usually there are multiple locations, classes and situations that users are allowed to comment. A general rule for all of those is usually not enough, for example some comments could only take care of their parents, while some should be able to go all the way to the root, if needed. Per class rules seem to enough only for very unique class/situation combinations...

What's your thoughts on this? Do you have similar needs? Or is there any other way of coping with that?

Thanks,
Piotrek

--
Company: mediaSELF Sp. z o.o., http://www.mediaself.pl
eZ references: http://ez.no/partners/worldwide_partners/mediaself
eZ certified developer: http://ez.no/certification/verify/272585
eZ blog: http://ez.ryba.eu

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 20 2025 17:19:49
Script start
Timing: Jan 20 2025 17:19:49
Module start 'layout'
Timing: Jan 20 2025 17:19:49
Module start 'content'
Timing: Jan 20 2025 17:19:50
Module end 'content'
Timing: Jan 20 2025 17:19:50
Script end

Main resources:

Total runtime1.1553 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.0070 588.0625151.2266
Module start 'layout' 0.00700.0040 739.289136.6797
Module start 'content' 0.01101.1435 775.9688492.6484
Module end 'content' 1.15450.0008 1,268.61727.8125
Script end 1.1553  1,276.4297 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00370.3180160.0002
Check MTime0.00140.1209160.0001
Mysql Total
Database connection0.00100.083210.0010
Mysqli_queries1.116196.6003460.0243
Looping result0.00050.0395440.0000
Template Total1.109496.020.5547
Template load0.00210.178620.0010
Template processing1.107395.840120.5536
Template load and register function0.00010.008910.0001
states
state_id_array0.00130.114910.0013
state_identifier_array0.00180.155320.0009
Override
Cache load0.00160.1408100.0002
Sytem overhead
Fetch class attribute can translate value0.00060.053510.0006
Fetch class attribute name0.00050.044120.0003
XML
Image XML parsing0.00060.051210.0006
class_abstraction
Instantiating content class attribute0.00000.000420.0000
General
dbfile0.00120.1068170.0001
String conversion0.00000.001040.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/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: 7
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs