One of the simplest ways is to simply have the event fire when a visitor
arrives. e.g. in application.cfm
<cflock timeout="1" throwontimeout="no" type="exclusive"
scope="application">
<cfif dateDiff("n", application.lastUpdated, now())>
do event
<cfset application.lastupdate=now()>
</cfif>
</cflock>
Obviously this is not suitable for all cases, but it often will do,
especially on regularly visited sites.
Matthew Walker
http://www.matthewwalker.net.nz/
> -----Original Message-----
> From: Ben Doom [mailto:bdoom@;moonbow.com]
> Sent: Thursday, 31 October 2002 9:47 a.m.
> To: CF-Talk
> Subject: RE: Coldfusion timing
>
>
> Still an ugly solution:
> Set the meta refresh to 7 minutes and leave the browser open
> somewhere.
>
> Ugh. Maybe you should ask the sysadmin after sending him flowers :-)
>
>
> --Ben Doom
> Programmer & General Lackey
> Moonbow Software
>
> : -----Original Message-----
> : From: Rob Rohan [mailto:rob@;cardinalweb.com]
> : Sent: Wednesday, October 30, 2002 3:37 PM
> : To: CF-Talk
> : Subject: RE: Coldfusion timing
> :
> :
> : Well, then you could hit refresh on the browser every 7 minutes.
> :
> : :)
> :
> : -----Original Message-----
> : From: Kris Pilles [mailto:kpilles@;wsboces.org]
> : Sent: Wednesday, October 30, 2002 12:27 PM
> : To: CF-Talk
> : Subject: RE: Coldfusion timing
> :
> :
> : I cant use schedueld tasks.... Sorry forgot to mention that...lol
> :
> : -----Original Message-----
> : From: Jeffry Houser [mailto:jeff@;farcryfly.com]
> : Sent: Wednesday, October 30, 2002 3:19 PM
> : To: CF-Talk
> : Subject: Re: Coldfusion timing
> :
> :
> : Look into scheduled tasks.
> : I believe they run every 15 minutes by default, but I
> think that value
> :
> : can be changed.
> :
> : At 03:14 PM 10/30/2002 -0500, you wrote:
> : >I need to use some timing within coldfusion....
> : >
> : >every 7 minutes, I need to execute some code
> : >
> : >
> : >Please advise as to how I can make this happen... I am
> lost on this one
> : >
> : >Kris Pilles
> : >Website Manager
> : >Western Suffolk BOCES
> : >507 Deer Park Rd., Building C
> : >Phone: 631-549-4900 x 267
> : >E-mail: [EMAIL PROTECTED]
> : >
> : >
> : >
> :
> :
> :
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
This list and all House of Fusion resources hosted by CFHosting.com. The place for
dependable ColdFusion Hosting.