]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki.pm
clear hashes in loadindex, so that it can safely be called more than once
[git.ikiwiki.info.git] / IkiWiki.pm
index 1c87831879afd5f154983123d3da1b7b188758ee..7a189cc8b282ac889ed8dd37ae71394e0fdafec3 100644 (file)
@@ -826,6 +826,11 @@ sub enable_commit_hook () { #{{{
 } #}}}
 
 sub loadindex () { #{{{
+       %oldrenderedfiles=%pagectime=();
+       if (! $config{rebuild}) {
+               %pagesources=%pagemtime=%oldlinks=%links=%depends=
+                       %destsources=%renderedfiles=%pagecase=();
+       }
        open (my $in, "<", "$config{wikistatedir}/index") || return;
        while (<$in>) {
                $_=possibly_foolish_untaint($_);