Look in main.py for the httpserver class. you could handle the cleanup in the stop function, or you could look at widget.py and add a line after the start server function to do the cleanup.
On Friday, June 8, 2012 2:04:17 PM UTC-7, Jonathan Lundell wrote: > > On Jun 8, 2012, at 12:49 PM, Derek wrote: > > Well, as an academic exercise, to recognize a user-initiated restart, i'd > hook into the shutdown function to manage clearing the cache and all that. > > > I didn't know there was one. >