|
View:
New views
8 Messages
—
Rating Filter:
Alert me
|
|
|
Flush ColdFusion trusted cache from Farcry WebtopFrom 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 --~--~---------~--~----~------------~-------~--~----~ You received this message cos you are subscribed to "farcry-dev" Google group. To post, email: farcry-dev@... To unsubscribe, email: farcry-dev+unsubscribe@... For more options: http://groups.google.com/group/farcry-dev -------------------------------- Follow us on Twitter: http://twitter.com/farcry -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: Flush ColdFusion trusted cache from Farcry WebtopAJ, 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 You received this message cos you are subscribed to "farcry-dev" Google group. To post, email: farcry-dev@... To unsubscribe, email: farcry-dev+unsubscribe@... For more options: http://groups.google.com/group/farcry-dev -------------------------------- Follow us on Twitter: http://twitter.com/farcry -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: Flush ColdFusion trusted cache from Farcry Webtopdone
http://docs.farcrycms.org/display/FCDEV50/Flush+ColdFusion+trusted+cache+from+Farcry+Webtop
2009/6/22 modius <modius@...>
-- AJ Mercer Web Log: http://webonix.net --~--~---------~--~----~------------~-------~--~----~ You received this message cos you are subscribed to "farcry-dev" Google group. To post, email: farcry-dev@... To unsubscribe, email: farcry-dev+unsubscribe@... For more options: http://groups.google.com/group/farcry-dev -------------------------------- Follow us on Twitter: http://twitter.com/farcry -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: Flush ColdFusion trusted cache from Farcry WebtopJust 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 <ajmercer@...> wrote: done --~--~---------~--~----~------------~-------~--~----~ You received this message cos you are subscribed to "farcry-dev" Google group. To post, email: farcry-dev@... To unsubscribe, email: farcry-dev+unsubscribe@... For more options: http://groups.google.com/group/farcry-dev -------------------------------- Follow us on Twitter: http://twitter.com/farcry -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: Flush ColdFusion trusted cache from Farcry WebtopI 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 <tkott.spam@...> 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? -- AJ Mercer Web Log: http://webonix.net --~--~---------~--~----~------------~-------~--~----~ You received this message cos you are subscribed to "farcry-dev" Google group. To post, email: farcry-dev@... To unsubscribe, email: farcry-dev+unsubscribe@... For more options: http://groups.google.com/group/farcry-dev -------------------------------- Follow us on Twitter: http://twitter.com/farcry -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: Flush ColdFusion trusted cache from Farcry WebtopBtw, I've tested this in CF7 and CF8 (and CF9 alpha/beta). Works great. I made it into a plugin and have already deployed it to several servers. I wish this could just be a part of FarCry Core, but it wouldn't likely be allowed on shared hosting servers. However as a plugin it works well (thanks AJ - Feel free to make this a simple plugin for others to use (if you don't mind writing the documentation explaining what trusted cache is, why it should only be used in production, how to activate it, etc). Regards, -- Jeff Coughlin Web Application Developer http://jeffcoughlin.com --~--~---------~--~----~------------~-------~--~----~ You received this message cos you are subscribed to "farcry-dev" Google group. To post, email: farcry-dev@... To unsubscribe, email: farcry-dev+unsubscribe@... For more options: http://groups.google.com/group/farcry-dev -------------------------------- Follow us on Twitter: http://twitter.com/farcry -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: Flush ColdFusion trusted cache from Farcry WebtopI will have to see what the equivalent on Railo is too
2009/6/24 Jeff Coughlin <jeff@...>
-- AJ Mercer Web Log: http://webonix.net --~--~---------~--~----~------------~-------~--~----~ You received this message cos you are subscribed to "farcry-dev" Google group. To post, email: farcry-dev@... To unsubscribe, email: farcry-dev+unsubscribe@... For more options: http://groups.google.com/group/farcry-dev -------------------------------- Follow us on Twitter: http://twitter.com/farcry -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: Flush ColdFusion trusted cache from Farcry WebtopI've just started using this. http://templatelistener.riaforge.org/ If I make a change I manually run the event gateway for that project so it only clears the files changed. I find that clearing the entire cache brings my server to it's knees as it reads every thing from disk again. Many timeouts and the like. --~--~---------~--~----~------------~-------~--~----~ You received this message cos you are subscribed to "farcry-dev" Google group. To post, email: farcry-dev@... To unsubscribe, email: farcry-dev+unsubscribe@... For more options: http://groups.google.com/group/farcry-dev -------------------------------- Follow us on Twitter: http://twitter.com/farcry -~----------~----~----~----~------~----~------~--~--- |
| Free embeddable forum powered by Nabble | Forum Help |