Monday, April 27, 2009

Re: Cake shells as birthday greeting sender

If your goal is to melt down your server's processors, then an
*infinite* loop might arguably be deemed an efficient solution ;-)

Anyway, you can use a shell for this and call the shell through cron.

On Mon, Apr 27, 2009 at 10:58 PM, gianpaulo <gcbasagre@gmail.com> wrote:
>
> Hi,
>
> I'm thinking of using cake shell to send birthday greetings everyday
> at a specific time. Is this the efficient way to do this? Well I'm
> planning to do an infinite loop that will check for the people who's
> birthday is the current date then sends them birthday greetings
> through email. I'm also planning to put other tasks (other reminders,
> etc.) aside from the birthday greetings. I'm just worried that this
> maybe not the efficient way, or should I use cron? I really like the
> cake shell because you could use your models with it.
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: