The solution of Stefan is perfect. If you were executing through an
exec() call, then a simple queue will fit your needs just fine. If no
need to execute a task, then just add it to the queue, which is
basically a list of tasks to be executed:
1. clear cache task
2. custom db cleaning task
3. c
I'm using Gearman for moving stuff to the background. Absolutely
wonderful stuff and very easy to deploy.
Stefan Koopmanschap schreef:
> Hi Christian,
> The best option for this would be some kind of jobqueue system. There
> are several options for this, which might or might not fit your soluti
Do you have permissions on the machine to create sockets? If so, and you
want an all PHP solution, you could create an extremely small PHP script
that runs as a daemon (the "server"), and create a socket with it, from
which this script will continuously wait for (any number of) clients to
connect.
Hi Chris,
The sfJobQueuePlugin will work for some basic actions, like fetching
rss feeds or sending emails. I tried to ported the plugin to an 1.2
version, but i had to stop my work on it then and could not implement
everything i wanted. But it's pretty easy to create your own "rss
feed" ha
Hi Christian,
The best option for this would be some kind of jobqueue system. There are
several options for this, which might or might not fit your solution:
There is an (old) plugin that I personally have no experience with but might
fit your needs which is the sfJobQueuePlugin[1]. The plugin desc