Ticket #161 (closed enhancement: fixed)

Opened 1 year ago

Last modified 1 year ago

Alter purge to leave unread articles

Reported by: trac_user Assigned to: fox
Priority: minor Milestone: 1.2.17
Component: backend Version: 1.2.16
Keywords: Cc:

Description

Add "AND unread=0" to the purge queries to avoid purging unread articles. (I had just lost a bunch of articles to the purger.)

Ideally it should probably be a per-user config option but I'm not that ambitious :)

Change History

11/02/07 18:35:16 changed by fox

Sorry, but no. The main function of purging is to stop database from growing too much and slowing tt-rss down.

11/05/07 03:01:00 changed by trac_user

The database size gets -worse- in that case, since users who wish to archive unread stories are forced to disable purging entirely.

Not to mention that database size policies shouldn't be set with unrelated options. If database size is an issue, the database purge should be "limit to X total entries", not "limit to X days". Some feeds get 1 entry every week (or month), others can get hundreds per day (Freshmeat, I'm looking at you..)

11/06/07 13:01:24 changed by fox

  • status changed from new to assigned.
  • milestone set to 1.2.17.

Frankly, I was thinking along the ways of removing the ability to never purge and thus tackle the problem from the other end. :)

You make a good point, though. I'll think about it.

11/15/07 12:00:21 changed by www-ttrss

  • status changed from assigned to closed.
  • resolution set to fixed.

(In [2141]) [project @ new preference: PURGE_UNREAD_ARTICLES (closes #161), fix bug in user purge]