Forums / Developer / How to be smarter than the "smart" cache ?

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

eZ debug

Timing: Jan 19 2025 00:26:06
Script start
Timing: Jan 19 2025 00:26:06
Module start 'content'
Timing: Jan 19 2025 00:26:06
Module end 'content'
Timing: Jan 19 2025 00:26:06
Script end

Main resources:

Total runtime0.0236 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.0069 587.8125180.8281
Module start 'content' 0.00690.0056 768.640693.9453
Module end 'content' 0.01250.0110 862.585970.7031
Script end 0.0235  933.2891 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00239.5928120.0002
Check MTime0.00104.1151120.0001
Mysql Total
Database connection0.00104.268910.0010
Mysqli_queries0.004117.196940.0010
Looping result0.00000.063720.0000
Template Total0.010444.210.0104
Template load0.00093.776210.0009
Template processing0.009540.380410.0095
Override
Cache load0.00062.647310.0006
General
dbfile0.003414.3837100.0003
String conversion0.00000.017230.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