diff --git a/cron/getPredictions.php b/cron/getPredictions.php index 80984ee2e1534a1364d9096e145fadd0a79ea445..09fd2e47671f7646d33a6d9f5e9d762fe68ef1a3 100644 --- a/cron/getPredictions.php +++ b/cron/getPredictions.php @@ -48,7 +48,7 @@ foreach ($routes as $route => $stops) { } } -dbq($db, "LOCK TABLES `predictions` WRITE, `messages` WRITE"); +dbq($db, "LOCK TABLES `predictions` WRITE, `messages` WRITE, `lastChecked` WRITE"); dbq($db, "DELETE FROM `messages` WHERE `agency` = '{$agency}'"); dbq($db, "DELETE FROM `predictions` WHERE `agency` = '{$agency}'"); diff --git a/cron/getRouteConfig.php b/cron/getRouteConfig.php index bbe63b90585a438d1270f7235e5bd5073ce1c3dd..ab4426e62e6fd43ec00a4382739efa6398112201 100644 --- a/cron/getRouteConfig.php +++ b/cron/getRouteConfig.php @@ -32,7 +32,7 @@ if ($lastFetched + $getRouteConfig_waitSeconds < time()) { if (@$source = file_get_contents($url)) { if ($thisXML = simplexml_load_string($source)) { - dbq($db, "LOCK TABLES `routes` WRITE, `stops` WRITE, `route_stops` WRITE"); + dbq($db, "LOCK TABLES `routes` WRITE, `stops` WRITE, `route_stops` WRITE, `lastChecked` WRITE"); dbq($db, "DELETE FROM `routes` WHERE `agency` = '{$agency}'"); dbq($db, "DELETE FROM `stops` WHERE `agency` = '{$agency}'");