From a69271338879099a1ffee9bc2d0a744c6d2cb75f Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 28 Jan 2017 20:10:38 +0100 Subject: use lookbehind to also show delayed trains scheduled for the previous hour --- index.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'index.pl') diff --git a/index.pl b/index.pl index 2780e6a..d153fe3 100644 --- a/index.pl +++ b/index.pl @@ -41,7 +41,7 @@ sub get_results_for { my $cache_iris_main = Cache::File->new( cache_root => $ENV{DBFAKEDISPLAY_IRIS_CACHE} // '/tmp/dbf-iris-main', - default_expires => '2 hours', + default_expires => '6 hours', lock_level => Cache::File::LOCK_LOCAL(), ); @@ -74,6 +74,7 @@ sub get_results_for { station => $station, main_cache => $cache_iris_main, realtime_cache => $cache_iris_rt, + lookbehind => 60, %opt ); $data = { -- cgit v1.2.3