From: joey Date: Mon, 21 May 2007 02:59:06 +0000 (+0000) Subject: Clear state after performing aggregation, since it could hypothetically X-Git-Url: https://scripts.mit.edu/gitweb/www/ikiwiki.git/commitdiff_plain/10017feaec75703b484f4d4f066e9d77cc7625ce Clear state after performing aggregation, since it could hypothetically change after the lock is dropped, and before the lock is regained by the build process. The state will now be reloaded by the build process. --- diff --git a/IkiWiki/Plugin/aggregate.pm b/IkiWiki/Plugin/aggregate.pm index 082290114..5024975ac 100644 --- a/IkiWiki/Plugin/aggregate.pm +++ b/IkiWiki/Plugin/aggregate.pm @@ -41,6 +41,7 @@ sub checkconfig () { #{{{ aggregate(); expire(); savestate(); + clearstate(); IkiWiki::unlockwiki(); } @@ -207,6 +208,12 @@ sub savestate () { #{{{ error("rename $newfile: $!", $cleanup); } #}}} +sub clearstate () { #{{{ + %feeds=(); + %guids=(); + $state_loaded=0; +} #}}} + sub expire () { #{{{ foreach my $feed (values %feeds) { next unless $feed->{expireage} || $feed->{expirecount};