@Massimo- The initial issue was about reloading modules for development not production.
from gluon.custom_import import track_changes; track_changes(True)
was not consistently reloading modules on each request while we were developing locally on the Rocket server, though I can't consistently reproduce this.
The second issue, which has me concerned about production, is that right now it's not clear to me what the boundaries are of modules and the execution environment in general. I had been under the assumption that, in wsgi applications, restarting the server would always clear out all modules and spawn a new execution environment. But we saw some behavior after Rocket restarts that looked like things were persisting across server restarts, though I can't say for certain.
Is it feasible that anything in the environment persist across wsgi server restarts? (If so then my understanding is all wrong). With Apache, does the configuration of mod_wsgi, and whether it's in embedded or daemon mode, have any bearing on this?