clear hashes in loadindex, so that it can safely be called more than once

even if pages have been deleted in between
master
joey 2007-10-10 18:46:25 +00:00
parent 278b16c79a
commit 3945473f8a
1 changed files with 5 additions and 0 deletions

View 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($_);