I've used the same method plenty of times in the past. Example: My message
board has a verification process to activate new accounts. Users have
(default) 24 hours after registering to activate the account via a link sent
to their email address. If it is not verified, it gets removed.

Rather than setup schedules for it (since not everyone can use cfschedules)
the house-cleaning script is triggered every time someone logs in or
registers. 

It works great and keeps the temp tables cleaned out.

Just decide where the best place to trigger the process is and go with it.
It would keep you from worrying about schedules and whether or not you had
access to them ever again. It makes users useful ;-)

..:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
 
 

-----Original Message-----
From: Michael Dinowitz [mailto:[EMAIL PROTECTED] 
Sent: Friday, January 20, 2006 4:36 PM
To: CF-Talk
Subject: Re: scheduling without a scheduler

If the site is being hit on a regular basis you can have one of those 
processes call the maintenance tasks on a regular basis. I just wrote an RSS

CFC for someone which will add new items to the RSS once per hour or when 
someone hits the script, which-ever is longer. This means that if the script

is hit once a minute, it'll only add a new item every hour. If it's hit once

a day, it'll only add something once a day. The same idea would work for a 
maintenance task where you set a variable to memory for the last time it was

run and every hit to the site, you just compare the current time to the 
stored time and if it's a specific difference (1 day for example), then run 
the maintenance.
Of course, this is kind of silly for some sites and is more of a cute idea 
than anything really optimal. You can also have another site calling the 
maintenance task on a schedule.

> Probably a daft question, but here goes.
>
> I want to get a site off my own server where I do have access to Cf Admin
> and onto a cheapo shared server where I won't have Cf-admin, or scheduler
> for that matter.
>
> I've got a bunch of maintenance tasks I'm currently running on the
> scheduler.  Does anyone have any ideas for a work around?
>
> Thanks, Jenny
>
> p.s. if you dont see this message let me know ;)
>
>
>
>
> 



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:230150
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to