summaryrefslogtreecommitdiff
path: root/lib/DBInfoscreen.pm
diff options
context:
space:
mode:
authorDaniel Friesel <daniel.friesel@uos.de>2020-01-30 17:44:01 +0100
committerDaniel Friesel <daniel.friesel@uos.de>2020-01-30 17:44:01 +0100
commitc1fa05429ac4fb5e09dcb5f8a17636ca1066e4f9 (patch)
treed3ded34f2332196d2f920b9ad6f7dc96f898c08a /lib/DBInfoscreen.pm
parent03178c5508a7e42366e581b4b42a2cea3a41bf16 (diff)
Remove session / "save defaults" support due to caching issues3.0.0
nginx cache keys depend on session data, so misbehaving clients (ignoring the refresh dely and continuously requesting a new departure board) with renewed session data could not be cached, impacting DBF performance
Diffstat (limited to 'lib/DBInfoscreen.pm')
-rw-r--r--lib/DBInfoscreen.pm1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/DBInfoscreen.pm b/lib/DBInfoscreen.pm
index 9285a82..6be6e2c 100644
--- a/lib/DBInfoscreen.pm
+++ b/lib/DBInfoscreen.pm
@@ -300,7 +300,6 @@ sub startup {
$r->get('/map/:tripid/:lineno')->to('map#route');
$self->defaults( layout => 'app' );
- $self->sessions->default_expiration( 3600 * 24 * 28 );
$r->get('/')->to('stationboard#handle_request');
$r->get('/multi/*station')->to('stationboard#handle_request');