Allow pre-caching to be disabled
authorJamie Cameron <jcameron@webmin.com>
Thu, 9 Dec 2010 18:42:06 +0000 (10:42 -0800)
committerJamie Cameron <jcameron@webmin.com>
Thu, 9 Dec 2010 18:42:06 +0000 (10:42 -0800)
miniserv.pl

index 9aec616..feef5a4 100755 (executable)
@@ -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);