Support » Fixing WordPress » Possible to limit rate of db-error.php notifications?

  • Resolved Andrew W

    (@andrew-whitacre)


    A lot of people recommend creating a file at the top level of a WP install that notifies the site admin if there’s a database connection error (e.g., https://digwp.com/2009/11/custom-database-error-page). However, such a method sends an email notification every time someone tries to access a page, which on a heavily trafficked site just obliterates an admin’s inbox. Yet none of the people who recommends setting up a db-error.php file seems to know how to limit the rate those notifications are sent out.

    If I can’t limit the rate, I don’t have a use for that method. Any experience/suggestions?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator Steve Stern

    (@sterndata)

    Guardian of the Interwebs

    I use uptimerobot.com. It notifies me when a site is down.

    If you have a site that’s getting db down messages more than once in a blue moon, you need to look closely at your server configuration.

    Andrew W

    (@andrew-whitacre)

    Ah, forgot there might be an external tool for this. Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Possible to limit rate of db-error.php notifications?’ is closed to new replies.