I have not had too.

I clear the CF cache first, and then once that is done, then select the
other options required.

2009/6/22 Tomek Kott <[email protected]>

> 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?
>
> Tomek
>
>
> On Mon, Jun 22, 2009 at 12:56 AM, AJ Mercer <[email protected]> wrote:
>
>> done
>>
>> http://docs.farcrycms.org/display/FCDEV50/Flush+ColdFusion+trusted+cache+from+Farcry+Webtop
>>
>>
>> 2009/6/22 modius <[email protected]>
>>
>>
>>> 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 <[email protected]> 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
>>>
>>>
>>
>>
>> --
>> AJ Mercer
>> Web Log: http://webonix.net
>>
>>
>>
>
> >
>


-- 
AJ Mercer
Web Log: http://webonix.net

--~--~---------~--~----~------------~-------~--~----~
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