summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2013-09-24 13:30:48 +0200
committerDaniel Friesel <derf@finalrewind.org>2013-09-24 13:30:48 +0200
commit2065739683c36dff30bacb32575bb0d692f7ecac (patch)
tree6baa04b4d45f11a04d9379aac9fb7b63a6cf8136
parente8a0fff80f268a9675b99c1ecd8c01fb18dc69a8 (diff)
decrease cache expiration time
-rw-r--r--cgi/index.pl6
1 files changed, 1 insertions, 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',