]> sipb.mit.edu Git - ikiwiki.git/commitdiff
Merge branch 'master' of ssh://git.ikiwiki.info
authorJoey Hess <joey@kitenet.net>
Wed, 24 Aug 2011 19:51:28 +0000 (15:51 -0400)
committerJoey Hess <joey@kitenet.net>
Wed, 24 Aug 2011 19:51:28 +0000 (15:51 -0400)
doc/bugs/aggregate_removed_feeds_linger.mdwn [new file with mode: 0644]
ikiwiki-mass-rebuild

diff --git a/doc/bugs/aggregate_removed_feeds_linger.mdwn b/doc/bugs/aggregate_removed_feeds_linger.mdwn
new file mode 100644 (file)
index 0000000..3e856e2
--- /dev/null
@@ -0,0 +1,11 @@
+When the [[plugins/aggregate]] plugin was used for a feed and this is removed (or the
+same feed name given a different rss feed), the old entries don't
+automatically vanish.
+
+I think that if it was just removed, they are never GC'd, because the
+expiry code works on the basis of existing feeds. And if it was replaced,
+old items won't go away until expirecount or expireage is met.
+
+To fix it probably needs an explicit check for items aggregated by feeds
+that no longer provide them, Catching old items for feeds that were changed
+to a different url may be harder yet. --[[Joey]]
index bbef4946bb5b76d4aa6f5a291b253ada42309529..9b57532bcce1897454b46a08ef62055c6982525c 100755 (executable)
@@ -29,7 +29,7 @@ sub processline {
 my %users;
 sub processuser {
        my $user=shift;
-       next if $user=~/^-/ || $users{$user};
+       return if $user=~/^-/ || $users{$user};
        $users{$user}=1;
        my $ret=system("su", $user, "-s", "/bin/sh", "-c", "--", "$0 --nonglobal @ARGV");
        if ($ret != 0) {