How to be smarter than the "smart" cache ?

Author Message

Xavier Dutoit

Wednesday 21 November 2007 1:23:21 am

Hi,

I have a list of the latest news in the home page that fetch all the content below the node media/new

When I publish a new content (class news) under media/news, I doesn't refresh the HP (standard behaviour).

So I added that in the viewcache.ini.append of the admin siteaccess:

[ViewCacheSettings]
SmartCacheClear=enabled

[news]
MaxParents=3
ObjectFilter[]
ObjectFilter[]=41
#clear the home page (related to media folder id 41)
ClearCacheMethod[]
ClearCacheMethod[]=relating

And I related the home page node with the media node.

cleared all cache

However, when I modify a new, it doesn't update the home page. Do you have any idea ?

More generally, the smart cache is seriously black magic, the syntax seems to change from version to version (I'm on 3.9.10) and I really don't know how to debug it, or to see if one of the extra rule is taken into account or not.

Any suggestion more than welcome.

X+

http://www.sydesy.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 19 2025 03:39:50
Script start
Timing: Jan 19 2025 03:39:50
Module start 'layout'
Timing: Jan 19 2025 03:39:50
Module start 'content'
Timing: Jan 19 2025 03:39:50
Module end 'content'
Timing: Jan 19 2025 03:39:50
Script end

Main resources:

Total runtime0.0129 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0046 589.2734152.6406
Module start 'layout' 0.00460.0024 741.914139.4609
Module start 'content' 0.00710.0040 781.375089.3828
Module end 'content' 0.01110.0017 870.757830.3047
Script end 0.0129  901.0625 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002216.7959140.0002
Check MTime0.00107.7511140.0001
Mysql Total
Database connection0.00075.263610.0007
Mysqli_queries0.002217.428930.0007
Looping result0.00000.099910.0000
Template Total0.001410.810.0014
Template load0.00075.713410.0007
Template processing0.00075.084110.0007
Override
Cache load0.00053.881110.0005
General
dbfile0.00032.594880.0000
String conversion0.00000.061140.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_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