Skip to content

Commit

Permalink
Add logging and cache-busting
Browse files Browse the repository at this point in the history
  • Loading branch information
waldoj committed Jan 7, 2024
1 parent 1258a18 commit b95cf2e
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions cron/update_places.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@
# INCLUDES
# Include any files or libraries that are necessary for this specific
# page to function.
include_once('../includes/settings.inc.php');
include_once('../includes/functions.inc.php');
include_once(__DIR__ . '/../includes/settings.inc.php');
include_once(__DIR__ . '/../includes/functions.inc.php');
include_once(__DIR__ . '/../includes/photosynthesis.inc.php');
include_once(__DIR__ . '/../includes/vendor/autoload.php');

# DECLARATIVE FUNCTIONS
# Run those functions that are necessary prior to loading this specific
Expand Down Expand Up @@ -224,17 +226,17 @@
$place_result = mysql_query($sql);
if ($place_result == false)
{
//$log->put('Error: Could not add place names for ' . strtoupper($bill['number']), 4);
$log->put('Error: Could not add place names for ' . strtoupper($bill['number']), 4);
}

}

/*
* Clear the bill from Memcached.
*/
//$mc->delete('bill-' . $bill['id']);
$mc->delete('bill-' . $bill['id']);

//$log->put('Identified place names in ' . strtoupper($bill['number']), 2);
$log->put('Identified place names in ' . strtoupper($bill['number']), 2);

}

Expand Down

0 comments on commit b95cf2e

Please sign in to comment.