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.