Smart view cache and AdditionalObjectIDs

Author Message

Erlend Halvorsen

Friday 21 September 2007 9:27:38 am

Hi!

I'm trying to clear the cache of our front page (object id 173) when new content is published. I've set up viewcache.ini for our admin site access like this:

[ViewCacheSettings]
ClearRelationTypes[]=
ClearRelationTypes[]=common
ClearRelationTypes[]=reverse_common
ClearRelationTypes[]=reverse_embedded

SmartCacheClear =enabled

AdditionalObjectIDs[]=
AdditionalObjectIDs[]=173

I was hoping this would clear the cache of the front page every time something is published, but nothing is happening. Any suggestions?

-Erlend

André R.

Friday 21 September 2007 12:48:11 pm

AdditionalObjectIDs seems to only be available in the class group settings, like this:

[forum_topic]
DependentClassIdentifier[]
DependentClassIdentifier[]=forum
ClearCacheMethod[]
ClearCacheMethod[]=object
ClearCacheMethod[]=parent
AdditionalObjectIDs[]=
AdditionalObjectIDs[]=173

Ref:
http://pubsvn.ez.no/nextgen/trunk/settings/viewcache.ini

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Xavier Dutoit

Monday 24 September 2007 12:04:29 am

Hi,

Beside, I'd suggest to put a ttl=0 on your homepage and create a cache-block around what needs to be updated (I suspect the latest news)

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 30 2025 21:47:28
Script start
Timing: Jan 30 2025 21:47:28
Module start 'layout'
Timing: Jan 30 2025 21:47:28
Module start 'content'
Timing: Jan 30 2025 21:47:28
Module end 'content'
Timing: Jan 30 2025 21:47:28
Script end

Main resources:

Total runtime0.0303 sec
Peak memory usage6,144.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0089 588.2891151.2266
Module start 'layout' 0.00890.0051 739.5156220.7188
Module start 'content' 0.01400.0149 960.2344997.9922
Module end 'content' 0.02880.0014 1,958.226633.9922
Script end 0.0303  1,992.2188 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00309.7968140.0002
Check MTime0.00123.8426140.0001
Mysql Total
Database connection0.00082.797410.0008
Mysqli_queries0.005919.434730.0020
Looping result0.00000.059010.0000
Template Total0.00103.310.0010
Template load0.00082.486710.0008
Template processing0.00020.818710.0002
Override
Cache load0.00051.715210.0005
General
dbfile0.00175.759980.0002
String conversion0.00000.039340.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