Commit 3c899deb authored by Kevin Abel's avatar Kevin Abel
Browse files

Cache the proxied bus data longer

Matches current production
parent 6720126d
......@@ -2,7 +2,7 @@
$url = 'http://getonboard.lincoln.ne.gov/packet/json/vehicle?lastVehicleHttpRequestTime=0';
$file = 'bus.json';
$seconds_to_cache = 1;
$seconds_to_cache = 4;
if (!file_exists($file) || time() - $seconds_to_cache >= filemtime($file)) {
//echo 'retrieved fresh';
......@@ -60,4 +60,4 @@ if (!file_exists($file) || time() - $seconds_to_cache >= filemtime($file)) {
$out = file_get_contents($file);
}
echo $out;
\ No newline at end of file
echo $out;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment