summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2016-02-05 15:10:41 +0100
committerDaniel Friesel <derf@finalrewind.org>2016-02-05 15:10:41 +0100
commit217efdb6c93dafcacb8a3ad501ce924dcbe26e2d (patch)
tree21cb7774374367a8caafdfbdac9d33659dc4edf7
parent23eb0840492beeba17331dc02e5d8cc4722bdb3f (diff)
Allow cache root to be set via env
-rw-r--r--index.pl2
1 files changed, 1 insertions, 1 deletions
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(),
);