summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2015-01-16 17:42:48 +0100
committerDaniel Friesel <derf@finalrewind.org>2015-01-16 17:42:48 +0100
commit5b9025c8158ef0c9b6c4fe72c71d877f37f6bbe2 (patch)
tree42b225f1341c4dd4150f1ba896e17600173959f7
parent038b7d597eaf952165a1355a13d3e1afb23a2757 (diff)
index: explicitly set lock level just to be safe
-rw-r--r--index.pl1
1 files changed, 1 insertions, 0 deletions
diff --git a/index.pl b/index.pl
index f2a2394..f76991c 100644
--- a/index.pl
+++ b/index.pl
@@ -20,6 +20,7 @@ sub get_results_for {
my $cache = Cache::File->new(
cache_root => '/tmp/db-fake',
default_expires => $refresh_interval . ' sec',
+ lock_level => Cache::File::LOCK_LOCAL(),
);
# Cache::File has UTF-8 problems, so strip it (and any other potentially