summaryrefslogtreecommitdiff
path: root/index.pl
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2016-05-07 11:33:27 +0200
committerDaniel Friesel <derf@finalrewind.org>2016-05-07 11:33:27 +0200
commit51d8dc235362a33266e301ad3b565d11c22b9d13 (patch)
treefa7f36563f9dfbfc4a0ed6d39dafde8fcee7faf2 /index.pl
parenta0193ca6ec2b67db360eb3f20dfad69940c0f6a1 (diff)
decrease HTML refresh time
Diffstat (limited to 'index.pl')
-rw-r--r--index.pl6
1 files changed, 2 insertions, 4 deletions
diff --git a/index.pl b/index.pl
index 78b7447..543bcd1 100644
--- a/index.pl
+++ b/index.pl
@@ -14,8 +14,6 @@ no if $] >= 5.018, warnings => 'experimental::smartmatch';
our $VERSION = qx{git describe --dirty} || '0.05';
-my $refresh_interval = 180;
-
my %default = (
backend => 'iris',
mode => 'clean',
@@ -37,7 +35,7 @@ sub get_results_for {
my $cache_hafas = Cache::File->new(
cache_root => $ENV{DBFAKEDISPLAY_HAFAS_CACHE} // '/tmp/dbf-hafas',
- default_expires => $refresh_interval . ' sec',
+ default_expires => '180 seconds',
lock_level => Cache::File::LOCK_LOCAL(),
);
@@ -773,7 +771,7 @@ sub handle_request {
departures => \@departures,
version => $VERSION,
title => "Abfahrtsmonitor $station_name",
- refresh_interval => $refresh_interval + 3,
+ refresh_interval => 120,
hide_opts => $hide_opts,
hide_low_delay => $hide_low_delay,
show_realtime => $show_realtime,