Friday, November 19, 2010 at 3:00 AM.
river2Suite.readFeedAfterNotify
on readFeedAfterNotify (urlfeed) {
<<Changes
<<11/17/10; 1:06:04 PM by DW
<<Just set a boolean to rebuild static pages at the top of the minute.
<<11/17/10; 12:39:49 PM by DW
<<We were reading a feed ten times because some servers were notifying us their feeds had changed before the change was reflected in the feed. Pretty sure this was wordpress.com. I understand they may still have the issue, but I can't afford to do ten reads on every notification, so we may miss some of their updates. C'est la vie.
<<9/7/09; 4:25:06 PM by DW
<<Do it a little differently.
<<9/7/09; 4:15:52 PM by DW
<<Created.
<<Added because sometimes WordPress notifies us of an update before the feed reflects the update. We give them an extra 30 seconds and then read the feed again.
<<This is called in a separate thread from river2Suite.rpcHandlers.feedUpdated.
<<I hope to be able to remove this at some point. :-)
river2Suite.readFeed (urlfeed);
system.temp.river2.flStaticBuild = true}; //11/17/10 by DW
<<bundle //old code
<<local (i)
<<for i = 1 to 10
<<clock.waitseconds (3)
<<river2Suite.readFeed (urlfeed)
bundle { //test code
readFeedAfterNotify ("http://scripting.com/rss.xml")}
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.