diff --git a/IkiWiki/Render.pm b/IkiWiki/Render.pm index c1a3dcbf2..632ec980b 100644 --- a/IkiWiki/Render.pm +++ b/IkiWiki/Render.pm @@ -155,7 +155,7 @@ sub genpage ($$) { sub scan ($) { my $file=shift; - return if $phase > PHASE_SCAN || $scanned{$file}; + return if $scanned{$file}; $scanned{$file}=1; debug(sprintf(gettext("scanning %s"), $file)); @@ -886,9 +886,6 @@ sub refresh () { # At this point it becomes OK to start matching pagespecs. $phase = PHASE_RENDER; - # Save some memory: we no longer need to keep track of which pages - # we've scanned - %scanned = (); remove_del(@$del, @$internal_del);