Changeset 359


Ignore:
Timestamp:
Sep 26, 2009 8:38:25 PM (15 years ago)
Author:
quinn
Message:

Modified logMsg throttle so as not to create thousands of lock files.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/App.inc.php

    r358 r359  
    555555        }
    556556
    557         // Create tmp files so that we don't email and sms redundantly.
     557        // Use "lock" files to prevent sending email and sms notices ad infinitum.
    558558        $site_hash = md5($_SERVER['SCRIPT_NAME']);
    559559        $temp_dir = $this->getParam('tmp_dir') . "/codebase_msgs_$site_hash/";
    560         $temp_file = $temp_dir . $msg_id;
     560        $temp_file = $temp_dir . md5($file . $line); // Just use the file and line for the msg_id to limit the number of possible messages.
    561561        if (!is_dir($temp_dir)) {
    562562            mkdir($temp_dir);
     
    10141014        // A redirection will never happen immediately after setting the boomerangURL.
    10151015        // Set the time so ensure this doesn't happen. See $app->validBoomerangURL for more.
     1016        /// FIXME: Why isn't the time set here under setBoomerangURL() and only under dieBoomerangURL()?
    10161017
    10171018        if ('' != $url && is_string($url)) {
Note: See TracChangeset for help on using the changeset viewer.