Monday, April 04, 2011 at 1:06 AM.
rssCloudSuite.getFeedInfo
on getFeedInfo (url, adrinfo) {
<<Changes
<<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 < (clock.now () - 3600) { //more than 1 hour old
local (items);
try {xml.rss.getFeedItems (url, @items, @adrfeed^.feedInfo)};
adrfeed^.whenLastGetFeedInfo = clock.now ()};
adrinfo^ = adrfeed^.feedInfo}
<<bundle //test code
<<getFeedInfo ("http://scripting.com/rss.xml", @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.