don't scan internal pages
authorJoey Hess <joey@kodama.kitenet.net>
Tue, 29 Jan 2008 23:06:36 +0000 (18:06 -0500)
committerJoey Hess <joey@kodama.kitenet.net>
Tue, 29 Jan 2008 23:06:36 +0000 (18:06 -0500)
scan() does too much. All that is needed is to preprocess the internal page
in scan-only mode.

IkiWiki/Render.pm

index 76e8ef1f4e7d0369eb6b48cc296436607037cfc6..a42cdc4224ddee61f6d07685788d832bdf0ab028 100644 (file)
@@ -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;