summaryrefslogtreecommitdiff
path: root/index.pl
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2017-01-28 20:10:38 +0100
committerDaniel Friesel <derf@finalrewind.org>2017-01-28 20:10:38 +0100
commita69271338879099a1ffee9bc2d0a744c6d2cb75f (patch)
tree7524e66ab378062032fad61579b486481b969462 /index.pl
parent2b4bbf2df93241b6269b4e28c344b348968efc86 (diff)
use lookbehind to also show delayed trains scheduled for the previous hour
Diffstat (limited to 'index.pl')
-rw-r--r--index.pl3
1 files changed, 2 insertions, 1 deletions
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 = {