From: joey Date: Wed, 10 Oct 2007 18:46:25 +0000 (+0000) Subject: clear hashes in loadindex, so that it can safely be called more than once X-Git-Tag: 2.10~42 X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/commitdiff_plain/3945473f8a0284066c8751940299fa9153efd0a7?hp=278b16c79ad98514e19dd3301e771516499f7a24 clear hashes in loadindex, so that it can safely be called more than once even if pages have been deleted in between --- 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($_);