From 2065739683c36dff30bacb32575bb0d692f7ecac Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Tue, 24 Sep 2013 13:30:48 +0200 Subject: decrease cache expiration time --- cgi/index.pl | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/cgi/index.pl b/cgi/index.pl index 12add75..7e88cee 100644 --- a/cgi/index.pl +++ b/cgi/index.pl @@ -26,11 +26,7 @@ my %default = ( sub get_results { my ( $backend, $city, $stop ) = @_; - my $expiry = 900; - - if ( lc($city) eq 'berlin' or lc($stop) ~~ [qw[hbf hauptbahnhof]] ) { - $expiry = 600; - } + my $expiry = 420; my $cache = Cache::File->new( cache_root => '/tmp/vrr-fake', -- cgit v1.2.3