From 3945473f8a0284066c8751940299fa9153efd0a7 Mon Sep 17 00:00:00 2001 From: joey Date: Wed, 10 Oct 2007 18:46:25 +0000 Subject: [PATCH] clear hashes in loadindex, so that it can safely be called more than once even if pages have been deleted in between --- IkiWiki.pm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/IkiWiki.pm b/IkiWiki.pm index 1c8783187..7a189cc8b 100644 --- a/IkiWiki.pm +++ b/IkiWiki.pm @@ -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($_); -- 2.39.5