]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki/Plugin/aggregate.pm
Clear state after performing aggregation, since it could hypothetically
[ikiwiki.git] / IkiWiki / Plugin / aggregate.pm
index 082290114fa8a382a133f6cfbcb2d8065c40eaca..5024975ac8603223191b9a36525c6a650d6bec77 100644 (file)
@@ -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};