Which view decorator will help me?

I have created a simple publishing rule to display related content filtering 
by content type. The execute.cfm is very simple using skin:relatedcontent to 
create the required html

I have tried adding cacheFlushOnObjectChange but still not luck in 
triggering the flushing of the cache on change and publication of the 
content item. From what I can see the flushing of cache is being triggered 
on the changes to the publishing rule stobj and not the content item that is 
being displayed.

Have searched through the core code (6.0.12) and could not find any other 
decorators that might help. 

Execute.cfm
<cfsetting enablecfoutputonly="true" />
<!--- @@displayname: ruleRelatedContent execute --->
<!--- @@Cachestatus: 1 --->
<!--- @@Cachetimeout: 1440 --->
<!--- @@cacheFlushOnObjectChange: 1 --->

<cfimport taglib="/farcry/core/tags/webskin" prefix="skin" />
<cfparam name="request.mode.lValidStatus" default="approved">
<skin:relatedcontent
                objectid="#request.stobj.objectid#"     
 typename="#stobj.contentTypename#"
                arrayProperty="#stobj.arrayProperty#" 
filter="#stobj.filter#"
                webskin="#stobj.webskin#" rendertype="#stobj.renderType#"
                r_html="htmlRelatedContent" />

<cfif len(trim(stObj.intro)) AND len(trim(htmlRelatedContent))>
                <cfoutput>#stObj.intro#</cfoutput>
</cfif>
<cfoutput>#htmlRelatedContent#</cfoutput>
<cfif len(trim(stObj.suffix)) AND len(trim(htmlRelatedContent))>
                <cfoutput>#stObj.suffix#</cfoutput>
</cfif>

<cfsetting enablecfoutputonly="false" />

Chris.

-- 
You received this message cos you are subscribed to "farcry-dev" Google group.
To post, email: [email protected]
To unsubscribe, email: [email protected]
For more options: http://groups.google.com/group/farcry-dev
--------------------------------
Follow us on Twitter: http://twitter.com/farcry

Reply via email to