Monday, April 04, 2011 at 1:06 AM.


on getFeedInfo (url, adrinfo) {
		<<10/2/09; 10:29:35 AM by DW
			<<Do the getFeedItems call in a try.
		<<10/2/09; 10:05:48 AM by DW
			<<Created. Return a table of info about the feed, cache for 1 hour.
	local (adrfeed = rssCloudSuite.initFeed (url));
	if adrfeed^.whenLastGetFeedInfo < ( () - 3600) { //more than 1 hour old
		local (items);
		try {xml.rss.getFeedItems (url, @items, @adrfeed^.feedInfo)};
		adrfeed^.whenLastGetFeedInfo = ()};
	adrinfo^ = adrfeed^.feedInfo}
<<bundle //test code
	<<getFeedInfo ("", @scratchpad.feedinfo)

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.