summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2006-03-13 02:29:32 +0000
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2006-03-13 02:29:32 +0000
commit15d316a812d89abf49be1641b4a611200c49c762 (patch)
tree57c4099c7bd2f11c60691f1e22913cab2f5a5bdd
parent1e5c7926cf8f54e25bb6c9c5f3b3be5e8667b47b (diff)
speed up cgis
-rwxr-xr-xikiwiki7
1 files changed, 6 insertions, 1 deletions
diff --git a/ikiwiki b/ikiwiki
index de71414ed..361c75c07 100755
--- a/ikiwiki
+++ b/ikiwiki
@@ -3,7 +3,6 @@ $ENV{PATH}="/usr/local/bin:/usr/bin:/bin";
use warnings;
use strict;
-use File::Find;
use Memoize;
use File::Spec;
use HTML::Template;
@@ -251,7 +250,9 @@ sub htmlize ($$) { #{{{
my $content=shift;
if (! $INC{"/usr/bin/markdown"}) {
+ no warnings 'once';
$blosxom::version="is a proper perl module too much to ask?";
+ use warnings 'all';
do "/usr/bin/markdown";
}
@@ -535,11 +536,15 @@ sub refresh () { #{{{
# Find existing pages.
my %exists;
my @files;
+
+ eval q{use File::Find};
find({
no_chdir => 1,
wanted => sub {
if (/$config{wiki_file_prune_regexp}/) {
+ no warnings 'once';
$File::Find::prune=1;
+ use warnings "all";
}
elsif (! -d $_) {
my ($f)=/$config{wiki_file_regexp}/; # untaint