cron job question
Posted 20 September 2006 - 08:47 PM
i was thinking of making 7 cron jobs, one for each day, to cope up with both the daily and the weekly subscriptions(the weekly ones being the users who registered that day). is making 7 cron jobs practical?
Posted 20 September 2006 - 08:58 PM
Create a script to check the day and if it's the day the weekly emails are sent, send to both "weekly" and "daily" subscribers. If it's not the day weekly emails are sent, only send to daily subscribers.
This way you only need a Cron that runs daily.
Hope this makes sense.
Posted 21 September 2006 - 12:58 AM
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users