Saner feed database management (#1131)
* Mark feedItems read in a single batch SQL update * Automatically remove old feed items * User-facing preference globally and per-feed for feed item expiration
This commit is contained in:
parent
7fc352b9b7
commit
d6d4e4b33e
14 changed files with 157 additions and 93 deletions
|
@ -321,7 +321,8 @@ var createFeed = Zotero.Promise.coroutine(function* (props = {}) {
|
|||
feed.description = props.description || "";
|
||||
feed.url = props.url || 'http://www.' + Zotero.Utilities.randomString() + '.com/feed.rss';
|
||||
feed.refreshInterval = props.refreshInterval || 12;
|
||||
feed.cleanupAfter = props.cleanupAfter || 2;
|
||||
feed.cleanupReadAfter = props.cleanupReadAfter || 2;
|
||||
feed.cleanupUnreadAfter = props.cleanupUnreadAfter || 30;
|
||||
yield feed.saveTx();
|
||||
return feed;
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue