I followed the tutorial http://bakery.cakephp.org/articles/view/calling-controller-actions-from-cron-and-the-command-line and now I have no problem.
Thanks On Jul 11, 2:43 am, zipman <[EMAIL PROTECTED]> wrote: > OK. > The question is why a method (action) inside a controller affects the > other actions > inside the same controller and even more every action in every other > controller? > If I have an action in which I have just sleep() and that action never > returns, when > I call that action, I cannot call any other action even from another > controller until > this particular ends. Is that supposed to happen? > > On Jul 11, 2:05 am, "John David Anderson (_psychic_)" > > <[EMAIL PROTECTED]> wrote: > > On Jul 9, 2007, at 11:45 AM, zipman wrote: > > > > I have a controller that inside I have placed actions that are called > > > throughcron > > > by using curl ( or lynx) and the full url to the action. The problem > > > is that some of > > > these actions may take sometime to complete, eg. I contact a remote > > > sms gateway > > > to send an sms and if no connection is made I use sleep to try again > > > after 5 seconds > > > etc. > > > When that happens, I cannot call any other action from any other > > > controller, which makes > > > my whole site completely unusable. I tried putting one of the action > > > out of cakephp and that > > > problem does not occur, but I don't want to do this as I use many of > > > tha cakephp api functions > > > inside these actions. > > > > Any suggestions what I am doing wrong? > > > Yeah: don't bump issues without providing more info, or rephrasing > > the question. > > > -- John --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---