[cfaussie] Re: Application.cfc refresh
OnApplicationStart only runs the first time a page with that application name is run. You should only put stuff that will never change, or needs to be initialized there. If you're playing with those settings for development, maybe you should put them in onrequest, then move them back for production. BlairOn 2/22/06, Tom MacKean [EMAIL PROTECTED] wrote: OK. I'm starting to get the hang of these Application.cfc things. However, if I change a value, that change is not reflected straight away. eg. if, in my OnApplicationStart function, I define cfset APPLICATION.dsn = sydneyivf_local. Later, I want to change this to sydneyivf_server, the change doesn't happen. A cfdump will still show APPLICATION.dsn as being sydneyivf_local What is the best way to clear old values to make this change happen? Anybody got a best practice? Thanks, Tom-- IMPORTANT: This email is intended for the use of the individual addressee(s) named above and may contain information that is confidential privileged or unsuitable for overly sensitive persons with low self-esteem, no sense of humor or irrational religious beliefs. If you are not the intended recipient, any dissemination, distribution or copying of this email is not authorized (either explicitly or implicitly) and constitutes an irritating social fauxpas. No animals were harmed in the transmission of this email, although the mutt next door is living on borrowed time, let me tell you. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfaussie -~--~~~~--~~--~--~---
[cfaussie] Re: Application.cfc refresh
That makes sense. Ta. On 2/22/06, Shib71 [EMAIL PROTECTED] wrote: OnApplicationStart only runs the first time a page with that application name is run. You should only put stuff that will never change, or needs to be initialized there. If you're playing with those settings for development, maybe you should put them in onrequest, then move them back for production. Blair On 2/22/06, Tom MacKean [EMAIL PROTECTED] wrote: OK. I'm starting to get the hang of these Application.cfc things. However, if I change a value, that change is not reflected straight away. eg. if, in my OnApplicationStart function, I define cfset APPLICATION.dsn = sydneyivf_local. Later, I want to change this to sydneyivf_server, the change doesn't happen. A cfdump will still show APPLICATION.dsn as being sydneyivf_local What is the best way to clear old values to make this change happen? Anybody got a best practice? Thanks, Tom-- IMPORTANT: This email is intended for the use of the individual addressee(s) named above and may contain information that is confidential privileged or unsuitable for overly sensitive persons with low self-esteem, no sense of humor or irrational religious beliefs. If you are not the intended recipient, any dissemination, distribution or copying of this email is not authorized (either explicitly or implicitly) and constitutes an irritating social fauxpas. No animals were harmed in the transmission of this email, although the mutt next door is living on borrowed time, let me tell you. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfaussie -~--~~~~--~~--~--~---
[cfaussie] Re: Application.cfc refresh
On 22/02/2006, at 1:17 PM, Tom MacKean wrote: What is the best way to clear old values to make this change happen? Anybody got a best practice? In onRequestStart: cfscript if structKeyExists(url, reset) { structClear(application); structClear(session); onApplicationStart(); onSessionStart(); /cfscript Probably best enough... __ Robin Hilliard Director - RocketBoots Pty Ltd Professional Services for Macromedia Technologies http://www.rocketboots.com.au For schedule/availability call Pamela Higgins: w+61 7 5451 0362 m+61 419 677 151 e[EMAIL PROTECTED] or Direct: m+61 418 414 341 f+61 2 9798 0070 e[EMAIL PROTECTED] *** What do you mean you haven't registered for Webdu! Fie!! *** --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfaussie -~--~~~~--~~--~--~---
[cfaussie] Re: Application.cfc refresh
On 22/02/2006, at 1:43 PM, Robin Hilliard wrote: Probably best enough... cfscript if structKeyExists(url, reset) { structClear(application); structClear(session); onApplicationStart(); onSessionStart(); } /cfscript This improved version will even compile without syntax errors! :-P __ Robin Hilliard Director - RocketBoots Pty Ltd Professional Services for Macromedia Technologies http://www.rocketboots.com.au For schedule/availability call Pamela Higgins: w+61 7 5451 0362 m+61 419 677 151 e[EMAIL PROTECTED] or Direct: m+61 418 414 341 f+61 2 9798 0070 e[EMAIL PROTECTED] *** Quick! Ring Geoff up and beg him to accept your late registration! *** --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfaussie -~--~~~~--~~--~--~---
[cfaussie] Re: Application.cfc refresh
Maybe on your computer... I had to put brackets around my if _expression_ Thanks Tom On 2/22/06, Robin Hilliard [EMAIL PROTECTED] wrote: On 22/02/2006, at 1:43 PM, Robin Hilliard wrote: Probably best enough... cfscript if structKeyExists(url, reset) { structClear(application); structClear(session); onApplicationStart(); onSessionStart(); }/cfscriptThis improved version will even compile without syntax errors! :-P__Robin HilliardDirector - RocketBoots Pty LtdProfessional Services for Macromedia Technologies http://www.rocketboots.com.auFor schedule/availability call Pamela Higgins:w+61 7 5451 0362m+61 419 677 151e [EMAIL PROTECTED]or Direct:m+61 418 414 341f+61 2 9798 0070e[EMAIL PROTECTED]*** Quick! Ring Geoff up and beg him to accept your late -- IMPORTANT: This email is intended for the use of the individual addressee(s) named above and may contain information that is confidential privileged or unsuitable for overly sensitive persons with low self-esteem, no sense of humor or irrational religious beliefs. If you are not the intended recipient, any dissemination, distribution or copying of this email is not authorized (either explicitly or implicitly) and constitutes an irritating social fauxpas. No animals were harmed in the transmission of this email, although the mutt next door is living on borrowed time, let me tell you. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfaussie -~--~~~~--~~--~--~---
[cfaussie] Re: Application.cfc refresh
someone has been codin too much VB it seems -Original Message-From: cfaussie@googlegroups.com [mailto:[EMAIL PROTECTED]On Behalf Of Tom MacKeanSent: Wednesday, February 22, 2006 2:04 PMTo: cfaussie@googlegroups.comSubject: [cfaussie] Re: Application.cfc refresh Maybe on your computer... I had to put brackets around my if _expression_ Thanks Tom On 2/22/06, Robin Hilliard [EMAIL PROTECTED] wrote: On 22/02/2006, at 1:43 PM, Robin Hilliard wrote: Probably "best" enough...cfscript if structKeyExists(url, "reset") { structClear(application); structClear(session); onApplicationStart(); onSessionStart(); }/cfscriptThis improved version will even compile without syntax errors! :-P__Robin HilliardDirector - RocketBoots Pty LtdProfessional Services for Macromedia Technologies http://www.rocketboots.com.auFor schedule/availability call Pamela Higgins:w+61 7 5451 0362m+61 419 677 151e [EMAIL PROTECTED]or Direct:m+61 418 414 341f+61 2 9798 0070e[EMAIL PROTECTED]*** Quick! Ring Geoff up and beg him to accept your late -- IMPORTANT: This email is intended for the use of the individual addressee(s) named above and may contain information that is confidential privileged or unsuitable for overly sensitive persons with low self-esteem, no sense of humor or irrational religious beliefs. If you are not the intended recipient, any dissemination, distribution or copying of this email is not authorized (either explicitly or implicitly) and constitutes an irritating social fauxpas. No animals were harmed in the transmission of this email, although the mutt next door is living on borrowed time, let me tell you. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfaussie -~--~~~~--~~--~--~---