RSS: Make the cache bigger in order to prevent duplicated announces.

This commit is contained in:
Valentin Lorentz 2014-09-12 22:37:06 +00:00
parent 7043e17fb0
commit 15fb16a8ae

View File

@ -295,7 +295,7 @@ class RSS(callbacks.Plugin):
feed.announced_entries |= set(entry.id for entry in new_entries)
# We keep a little more because we don't want to re-announce
# oldest entries if one of the newest gets removed.
feed.announced_entries.truncate(2*len(entries))
feed.announced_entries.truncate(10*len(entries))
return new_entries
def announce_feed(self, feed, initial):