« Return to Thread: Flush ColdFusion trusted cache from Farcry Webtop
Just a thought looking through the code, but once you log in, shouldn't you log out after clearing the cache just to be on the safe side?
TomekOn Mon, Jun 22, 2009 at 12:56 AM, AJ Mercer <ajmercer@...> wrote:
done
http://docs.farcrycms.org/display/FCDEV50/Flush+ColdFusion+trusted+cache+from+Farcry+Webtop
2009/6/22 modius <modius@...>
AJ,
Great little post!
If you get a chance please stick it under Code By Example on the WIKI:
http://docs.farcrycms.org/display/FCDEV50/Code+By+Example
-- geoff
http://www.daemon.com.au/
On Jun 22, 1:16 pm, AJ Mercer <ajmer...@...> wrote:
> From what Geoff said about improving (production) preformance, I have turned
> on trusted template cache in cfadmin.
>
> But everytime I do a Farcry update app I forget to flush the cache first :-(
>
> So here is how to add this functionality to theFarcry Webtop (only tested in
> CF8).
>
> [project | plugin]\packages\forms\*UpdateApp.cfc*
> <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 adminObj =
> createObject("component","cfide.adminapi.administrator").login(application. fapi.getConfig('coldfusion','password'))
> />
> <cfset var oRuntime =
> createObject("component","cfide.adminapi.runtime") />
>
> <cfset oRuntime.CLEARTRUSTEDCACHE() />
>
> <cfreturn true />
> </cffunction>
>
> </cfcomponent>
>
> [project | plugin]\packages\forms\*configColdFusion.cfc*
> <cfcomponent extends="farcry.core.packages.forms.forms" key="coldfusion"
> displayname="ColdFusion Config" hint="ColdFusion Server" output="false">
> <cfproperty name="password" type="string" default="" hint="Password for
> accessing CF Admin " ftSeq="1" ftFieldset="Server" ftLabel="CF Password"
> ftType="password" ftRenderType="editpassword" ftstyle="width:500px;" />
> </cfcomponent>
>
> --
> AJ Mercer
> Web Log:http://webonix.net
« Return to Thread: Flush ColdFusion trusted cache from Farcry Webtop
| Free embeddable forum powered by Nabble | Forum Help |