No intrusion. I assume you mean why would I refresh the application scope by using a link in the admin area? Because I'm too stupid to figure out a better way? :)
I indeed thought I was saving overhead by not resetting the same application-scoped variables for every request...since they don't change often. ----- Original Message ----- From: "Matt Robertson" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Sunday, July 13, 2003 2:30 PM Subject: RE: Refresh application-scoped variables > Pardon the intrusion, but why would you refresh the application scope > like this? Saving overhead rather than using cfparam in > application.cfm? > > -------------------------------------------- > Matt Robertson [EMAIL PROTECTED] > MSB Designs, Inc. http://mysecretbase.com > -------------------------------------------- > > > > -----Original Message----- > From: Dina Hess [mailto:[EMAIL PROTECTED] > Sent: Sunday, July 13, 2003 12:23 PM > To: CF-Talk > Subject: Re: Refresh application-scoped variables > > > So you have a "refresh application scope" link in an admin area to set > url.reset? Sounds like what I'm doing now. I just wondered if there was > a > better to do it. > > Thanks for the input, Mike. > > > ----- Original Message ----- > From: "Mike Townend" <[EMAIL PROTECTED]> > To: "CF-Talk" <[EMAIL PROTECTED]> > Sent: Sunday, July 13, 2003 1:02 PM > Subject: RE: Refresh application-scoped variables > > > > I usually do something like.. > > > > <CFIF Not IsDefined("Application.DSN") OR IsDefined("URL.Reset")> > > <!--- Create all Application Vars ---> > > </CFIF> > > > > So if I need to reset an app then just call the page and append a > ?reset=1 > > > > HTH > > > > > > > > -----Original Message----- > > From: Dina Hess [mailto:[EMAIL PROTECTED] > > Sent: Sunday, July 13, 2003 18:45 > > To: CF-Talk > > Subject: Refresh application-scoped variables > > > > > > Hi all, > > > > Can't seem to get my head around this one... How can I > programmatically > > refresh application-scoped variables whenever there's a change? > > > > Right now, I'm doing something like this in Application.cfm: > > > > <cfparam name="application.init" default="0"> > > > > <cfif not application.init> > > use cfsavecontent to create application-scoped variables > > set application.init to 1 > > </cfif> > > > > What I want is some way to automatically reset application.init to 0 > > whenever these variables are modified. > > Can someone point me in the right direction? Resources? > > > > Thanks, > > ~Dina > > http://www.dinahess.com/ > > > > > > > > > > > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

