From 217efdb6c93dafcacb8a3ad501ce924dcbe26e2d Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Fri, 5 Feb 2016 15:10:41 +0100 Subject: Allow cache root to be set via env --- index.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.pl b/index.pl index 34c3c7a..ca43487 100644 --- a/index.pl +++ b/index.pl @@ -99,7 +99,7 @@ helper barplot_filters => sub { my $dbh = $self->app->dbh; my $cache = Cache::File->new( - cache_root => '/tmp/dbdb', + cache_root => $ENV{DBDB_CACHE} // '/tmp/dbdb', default_expires => '12 hours', lock_level => Cache::File::LOCK_LOCAL(), ); -- cgit v1.2.3