From: Joey Hess Date: Tue, 29 Jan 2008 23:06:36 +0000 (-0500) Subject: don't scan internal pages X-Git-Tag: 2.30~44 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=7125c7269afca4a76dc24d5475d20986e8b99722;p=ikiwiki.git don't scan internal pages scan() does too much. All that is needed is to preprocess the internal page in scan-only mode. --- diff --git a/IkiWiki/Render.pm b/IkiWiki/Render.pm index 76e8ef1f4..a42cdc422 100644 --- a/IkiWiki/Render.pm +++ b/IkiWiki/Render.pm @@ -377,7 +377,9 @@ sub refresh () { #{{{ $pagemtime{$page}=$mtime; if (isinternal($page)) { push @internal, $file; - scan($file); + # Preprocess internal page in scan-only mode. + my $content=readfile(srcfile($file)); + preprocess($page, $page, $content, 1); } else { push @needsbuild, $file;