Posted on: 07/30/08 10:36am
By: muntada
I have had this happen before on another Geeklog site and I can't recall how I finally resolved it. I have a situation that every time a Daily Digest is sent out, it sends out multiple instances of the same email to each user.
In fact, over time, it gets worse. Initially it just sent two out; then three; then four; then five; etc.
Any idea what is going on?
Re: Daily Digest Sending Multiple Email to Users
Posted on: 07/30/08 10:51am
By: Dirk
It's probably running into a timeout when trying to send the emails to all users. So the server killed the job before it did get to the point where it considered all emails sent. And the next time it's run, it's starting from the beginning ...
There's a timestamp in the gl_vars table for the last successfully sent Daily Digest. You could update that manually or download my Manual Digest plugin (should be in the Downloads area somewhere), which has a handy "reset" button for that purpose.
If you can't increase the time allotment for the Daily Digest script, you should probably disable it. It's not really made for a lot of users ...
bye, Dirk
Re: Daily Digest Sending Multiple Email to Users
Posted on: 07/30/08 02:33pm
By: muntada
Thanks Dirk...
I have root access to the server and can make an config changes that is necessary. Having said that, what do I want to target from within the application and on the Apache config files to increase the timeout?
Re: Daily Digest Sending Multiple Email to Users
Posted on: 07/30/08 03:58pm
By: Dirk
Start with max_execution_time in your php.ini. That's for all PHP scripts, though, including those running in the webserver.
Not sure where to increase the max. execution time of a cronjob. That's beyond my somewhat limited knowledge of Unix/Linux ...
bye, Dirk
Re: Daily Digest Sending Multiple Email to Users
Posted on: 07/30/08 04:16pm
By: ::Ben
Hi muntada,
Maybe it would be a future task for geeklog dev to update the Daily Digest...
One question : How many users do you have in your DB?
Thanks.
::Ben
Re: Daily Digest Sending Multiple Email to Users
Posted on: 07/30/08 04:33pm
By: muntada
269...So not much from my take.
I think it is a great feature. All of my customers use it and love it. If something goes wrong they immediately report it to me.
Re: Daily Digest Sending Multiple Email to Users
Posted on: 07/30/08 04:48pm
By: Dirk
It is a nice feature - it just doesn't scale very well. I've seen it fail at around 100 subscribers on a shared hosting account.
bye, Dirk