Clear the view cache for all the siblings of this node/object.

Author Message

Romeo Antony

Tuesday 09 November 2010 2:50:52 am

Hi ,

Just curious to know, I have an issue while I set up my smart view cache for ez site.

this is the way my content node tree structure

--folder(root)

------------------- --folder1

------------------- --folder2

---------------------------------- --folder3

--------------------------------------------------custom_article1

---------------------------------- --folder4

--------------------------------------------------- --article2

for smart view cache I have set up

[ViewCacheSettings]
SmartCacheClear=enabled

[article]
DependentClassIdentifier[]=folder
ClearCacheMethod[]=sibling

when publish an article from folder4, smart view cache will take the path as string as

folder(root)/folder2/folder4/article2

I do not know why view cache for custom_article1

is not been cleared. If i have already set up like DependentClassIdentifier[]=folder and ClearCacheMethod[]=sibling.

Anyone knows why view cache for custom_article1 is not been cleared?

simple anyone plz tell me the depth of sibling ?

Is it depth is restricted to 1 ?

Ivo Lukac

Tuesday 09 November 2010 5:20:28 am

Your smart cache config will ensure that folder3 view cache is cleared.

Siblings are nodes with the same parent node id.

http://www.linkedin.com/in/ivolukac
http://www.netgen.hr/eng/blog
http://twitter.com/ilukac

Romeo Antony

Tuesday 09 November 2010 11:17:51 pm

There I am.

"Siblings are nodes with the same parent node id."

Thanks Ivo.

I have mistaken sibling can be as if grand child nodes. ... it's child nodes etc. It was my fault

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 21:01:10
Script start
Timing: Jan 18 2025 21:01:10
Module start 'layout'
Timing: Jan 18 2025 21:01:10
Module start 'content'
Timing: Jan 18 2025 21:01:11
Module end 'content'
Timing: Jan 18 2025 21:01:11
Script end

Main resources:

Total runtime0.7389 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0063 588.1719152.6563
Module start 'layout' 0.00630.0028 740.828139.5156
Module start 'content' 0.00910.7281 780.3438560.2266
Module end 'content' 0.73720.0016 1,340.570312.0938
Script end 0.7388  1,352.6641 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.4185160.0002
Check MTime0.00120.1662160.0001
Mysql Total
Database connection0.00100.129810.0010
Mysqli_queries0.671690.8896570.0118
Looping result0.00060.0819550.0000
Template Total0.707095.720.3535
Template load0.00210.289420.0011
Template processing0.704995.400020.3524
Template load and register function0.00010.013910.0001
states
state_id_array0.00080.105010.0008
state_identifier_array0.00120.163720.0006
Override
Cache load0.00180.2497560.0000
Sytem overhead
Fetch class attribute can translate value0.00070.092020.0003
Fetch class attribute name0.00160.210750.0003
XML
Image XML parsing0.00120.156620.0006
class_abstraction
Instantiating content class attribute0.00000.001860.0000
General
dbfile0.00310.4225230.0001
String conversion0.00000.000940.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
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
18content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
13content/datatype/view/ezxmltags/strong.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/strong.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/datatype/view/ezxmltags/emphasize.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/emphasize.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 43
 Number of unique templates used: 8

Time used to render debug report: 0.0001 secs