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

radio2Suite.utilities.rebuildArchive

on rebuildOneArchive (adrfeed) {
	<<Changes
		<<2/22/11; 10:03:58 PM by DW
			<<Maintenence code to rebuild the archive for all feeds for all users. The format of the archive changed, we're now archiving every post. Called from the everyMinute script.
	local (adruser = parentof (parentof (adrfeed^)^));
	on visit (adrday) {
		local (d = mainresponder.calendar.getaddressday (adrday));
		msg ("Rebuild archive for " + nameof (adruser^) + ": " + d);
		radio2Suite.buildRss (adruser, adrfeed, theDay:d)};
	mainresponder.calendar.visitReverseChronologic (@adrfeed^.calendar, @visit, true)};
bundle { //body
	local (adrdata = radio2suite.init (), adruser, adrfeed);
	for adruser in @adrdata^.users {
		for adrfeed in @adruser^.feeds {
			rebuildOneArchive (adrfeed)}}}



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.