True.. What I was getting at is that at least once every 5 mins (or
minute.. Or whatever) a script could be run to cause an error that would
then load the server vars.  You're right, it wouldn't be (most likely)
the FIRST thing that ran on the server.  But depending upon scheduling,
it may be pretty close.

Of course.. Who am I kidding... When does "pretty close" count?? ;)


Lee Fuller
Chief Technical Officer
PrimeDNA Corporation / AAA Web Hosting Corporation
"We ARE the net."
http://www.aaawebhosting.com



> -----Original Message-----
> From: Michael Dinowitz [mailto:[EMAIL PROTECTED]] 
> Sent: Tuesday, August 21, 2001 9:30 AM
> To: CF-Talk
> Subject: RE: load page when CF restarts
> 
> 
> Would that make sure the page ran before anything else? Is a 
> scheduled 
> event run as the server starts up or after its already 
> running. A test 
> would be to set a scheduled event to set one variable and a 
> page to set 
> another. cycle the server and keep running the page until the 
> server comes 
> up. See which variable is in memory.
> Also, are all schedule tasks run once the machine restarts?
> 
> At 12:20 PM 8/21/01, you wrote:
> >Couldn't you just sched a page to load every 5 mins or so, 
> and have it 
> >do that?
> >
> >
> >Lee Fuller
> >Chief Technical Officer
> >PrimeDNA Corporation / AAA Web Hosting Corporation
> >"We ARE the net."
> >http://www.aaawebhosting.com
> >
> >
> >
> > > -----Original Message-----
> > > From: Michael Dinowitz [mailto:[EMAIL PROTECTED]]
> > > Sent: Tuesday, August 21, 2001 9:00 AM
> > > To: CF-Talk
> > > Subject: Re: load page when CF restarts
> > >
> > >
> > > I've begged for this feature for the last 2 or 3 releases of CF. 
> > > Basically, the only way to make sure something is in 
> memory before 
> > > the page is called
> > > is to place it in the application.cfm (all application.cfms).
> > > I usually set
> > > a 'SetServer.cfm' file with the following code:
> > > <CFLOCK......>
> > > <CFIF Not IsDefined('Server.UDFLib')>
> > >          Set server vars
> > > </CFIF>
> > > </CFLOCK>
> > > And then include it in all my application.cfms. If there was
> > > another way
> > > I'd love it. Maybe a site wide error handler that looks 
> for a 'server
> > > variable not defined' error message, loads the server
> > > variables and then
> > > reloads the page that was just called.
> > >
> > > At 11:53 AM 8/21/01, you wrote:
> > > >I would like to store some variables in the Server scope so that 
> > > >they're available to all applications on the server. Is there an 
> > > >automated way to load a specific page when CF restarts?
> > > >
> > > >-mike
> > > >
> > > >
> > > >
> > >
> >
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to