View Full Version : email limiter for db errors
alexi
Sun 24th Feb '02, 2:34am
my boards were down for 8 hours and I had 30,000 database error emails. How about some way to limit them.
JamesUS
Sun 24th Feb '02, 4:16am
That's a lot tougher than it sounds actually - we'd have to store the number of mails sent somewhere, ie the database. But when the database is down you can't get to the database, so you can't get to that number, so it can't limit it.
The best solution would probably be to store it in a text file somewhere, which shouldn't have much of a performance impact seeing as it will only be used when an error is generated.
With any luck something like this will be in vB 3...but I'm not sure if it's on the to-do list or not at the moment.
The_Sisko
Sun 24th Feb '02, 7:34am
I thought about this as well, and thought the best way would be to set a new cookie when the user comes to the error page. So when he returns (reload) to the page, the cookie would stop sending emails out.
This would work for my board, as we only got 2000 members. But this will still be 2000 emails anyway when all users would come to the site in this downtime....
But maybe the cookie would be an idea...
vBulletin® v3.8.0 Release Candidate 1, Copyright ©2000-2008, Jelsoft Enterprises Ltd.