diff options
author | Daniel Friesel <derf@finalrewind.org> | 2016-02-05 15:01:59 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2016-02-05 15:01:59 +0100 |
commit | 4eefbe2e49fd6e3e126b74f7c048f12cca1f8321 (patch) | |
tree | 167536b6f974b5d7a9db88d039fb59f5ae64cb36 | |
parent | 48b4f339e140ad9aadbcd1c016f75456b90c62be (diff) |
Allow cache root to be set via env
-rw-r--r-- | index.pl | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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(), ); |