Saturday, April 02, 2011 at 9:21 PM.

rssToBlogSuite.background.everyMinute

on everyMinute () {
	<<Changes
		<<2/25/11; 2:00:17 PM by DW
			<<Created. 
	local (adrdata = rssToBlogSuite.init (), now = clock.now ());
	bundle { //read feeds if it's time to
		if adrdata^.prefs.enabled and (not user.prefs.fldevmachine) {
			local (adrblog);
			for adrblog in @adrdata^.blogs {
				rssToBlogSuite.initBlog (adrblog);
				if adrblog^.prefs.enabled {
					if now >= adrblog^.stats.whenNextRead {
						rssToBlogSuite.readFeed (adrblog);
						adrblog^.stats.whenNextRead = now + (60 * adrdata^.prefs.ctMinutesBetwReads)}}}}}};
bundle { //test code
	everyMinute ()}



This listing is for code that runs in the OPML Editor environment. I created these listings because I wanted the search engines to index it, so that when I want to look up something in my codebase I don't have to use the much slower search functionality in my object database. Dave Winer.