summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2016-02-05 15:01:59 +0100
committerDaniel Friesel <derf@finalrewind.org>2016-02-05 15:01:59 +0100
commit4eefbe2e49fd6e3e126b74f7c048f12cca1f8321 (patch)
tree167536b6f974b5d7a9db88d039fb59f5ae64cb36
parent48b4f339e140ad9aadbcd1c016f75456b90c62be (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 ab9f4c1..892f230 100644
--- a/index.pl
+++ b/index.pl
@@ -50,7 +50,7 @@ sub get_results {
$expiry ||= 150;
my $cache = Cache::File->new(
- cache_root => '/tmp/vrr-fakedisplay',
+ cache_root => $ENV{VRRFAKEDISPLAY_CACHE} // '/tmp/vrr-fakedisplay',
default_expires => "${expiry} sec",
lock_level => Cache::File::LOCK_LOCAL(),
);