summaryrefslogtreecommitdiff
path: root/IkiWiki.pm
diff options
context:
space:
mode:
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2007-10-10 18:46:25 +0000
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2007-10-10 18:46:25 +0000
commit3945473f8a0284066c8751940299fa9153efd0a7 (patch)
tree41e2a3ab06b5fc829f908855a83e6b08fc672fd8 /IkiWiki.pm
parent278b16c79ad98514e19dd3301e771516499f7a24 (diff)
clear hashes in loadindex, so that it can safely be called more than once
even if pages have been deleted in between
Diffstat (limited to 'IkiWiki.pm')
-rw-r--r--IkiWiki.pm5
1 files changed, 5 insertions, 0 deletions
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($_);