<cfcomponent displayname="Update App"
hint="Provides a granular way to update parts of the application state"
extends="farcry.core.packages.forms.UpdateApp"
output="false">
<cfproperty ftSeq="101"
ftFieldset="ColdFusion"
name="cfCache"
type="boolean"
default="0"
hint="Flush ColdFusion Trusted cache"
ftLabel="Flush Trusted Cache" ftType="boolean" />
<cffunction name="processCFcache"
access="public" returntype="boolean"
description="Reload PSL Service"
output="false">
<cfset var adminObjoCFAdmin = createObject("component","cfide.adminapi.administrator").login(application.fapi.getConfig('coldfusion','password')) />
<cfset var oRuntime = createObject("component","cfide.adminapi.runtime") />
<!--- Clear trusted cache --->
<cfset oRuntime.clearTrustedCache() />
<!--- Stop and restart trusted cache --->
<cfset oRuntime.CLEARTRUSTEDCACHE(setCacheProperty("TrustedCache", 0) />
<cfset oRuntime.setCacheProperty("TrustedCache", 1) />
<cfreturn true />
</cffunction>
</cfcomponent>
|