clear %pagestate in loadindex
authorJoey Hess <joey@kodama.kitenet.net>
Sun, 3 Feb 2008 08:25:47 +0000 (03:25 -0500)
committerJoey Hess <joey@kodama.kitenet.net>
Sun, 3 Feb 2008 08:25:47 +0000 (03:25 -0500)
This is to handle the case where loadindex is called multiple times in one run,
as when aggregating.

IkiWiki.pm

index 050d4e5b25af59e343907f3b992d212fc98c1e4d..8172552cbe147d830d51695f5c1a2149a8274b2d 100644 (file)
@@ -884,7 +884,7 @@ sub loadindex () { #{{{
        %oldrenderedfiles=%pagectime=();
        if (! $config{rebuild}) {
                %pagesources=%pagemtime=%oldlinks=%links=%depends=
-                       %destsources=%renderedfiles=%pagecase=();
+                       %destsources=%renderedfiles=%pagecase=%pagestate=();
        }
        open (my $in, "<", "$config{wikistatedir}/index") || return;
        while (<$in>) {