Feed Expirations in MonkeyChow
Saturday, May 27th, 2006In the latest SVN update (36) I’ve added the ability to expire feeds after a certain period. By default a feed remains in your feeds list until it is manually deleted. However, this is not always the ideal way to manage feeds that have a certain lifetime. Blogs now offer comment feeds and online stores like Buy.com offer feeds to product sales. Or Expedia flight info feeds. All of these may only interest you for a limited time.
Now, when you edit a feed, you can specify a certain amount of time for a feed subscription. After that time has passed, the feed will automatically be deleted. This can also be applied to feeds that you just want to try out for a week. Set it to 7 days and forget it. Say you like that feed - just edit the properties of the feed and set the 7 to a 0 and you can keep it as long as you like!
I still don’t have a way to automatically update the database in newer SVN versions, so to enable this, add the following column to your feeds table:
`expir` int(11) NOT NULL default ‘0’,
If anything in the database seems out of place, check the install.php file for the proper format. If you have any ideas about how this can be automated, please let me know. This is the type of thing you get for free in frameworks like Ruby on Rails (migrations), so I figure I’ll have to simulate something like that in PHP.



