From: Joey Hess Date: Sun, 3 Feb 2008 08:25:47 +0000 (-0500) Subject: clear %pagestate in loadindex X-Git-Tag: 2.31~49 X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/commitdiff_plain/09187f83bc8e022df24de534861e4f6a6026b3f9?ds=inline;hp=-c clear %pagestate in loadindex This is to handle the case where loadindex is called multiple times in one run, as when aggregating. --- 09187f83bc8e022df24de534861e4f6a6026b3f9 diff --git a/IkiWiki.pm b/IkiWiki.pm index 050d4e5b2..8172552cb 100644 --- a/IkiWiki.pm +++ b/IkiWiki.pm @@ -884,7 +884,7 @@ sub loadindex () { #{{{ %oldrenderedfiles=%pagectime=(); if (! $config{rebuild}) { %pagesources=%pagemtime=%oldlinks=%links=%depends= - %destsources=%renderedfiles=%pagecase=(); + %destsources=%renderedfiles=%pagecase=%pagestate=(); } open (my $in, "<", "$config{wikistatedir}/index") || return; while (<$in>) {