From a0ce07e5b73e8767ddaee2bb7cbd9fa54f18bf7b Mon Sep 17 00:00:00 2001 From: Jamie Cameron Date: Thu, 9 Dec 2010 10:42:06 -0800 Subject: [PATCH] Allow pre-caching to be disabled --- miniserv.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/miniserv.pl b/miniserv.pl index 9aec61636..feef5a43f 100755 --- a/miniserv.pl +++ b/miniserv.pl @@ -5646,6 +5646,7 @@ sub precache_files { undef(%main::read_file_cache); foreach my $g (split(/\s+/, $config{'precache'})) { + next if ($g eq "none"); foreach my $f (glob("$config{'root'}/$g")) { my @st = stat($f); next if (!@st);