From 4eefbe2e49fd6e3e126b74f7c048f12cca1f8321 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Fri, 5 Feb 2016 15:01:59 +0100 Subject: Allow cache root to be set via env --- index.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'index.pl') 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(), ); -- cgit v1.2.3