[mod_python] Q - Lifetime of imported modules?

David McNab david at rebirthing.co.nz
Sat Feb 14 19:08:16 EST 2004


I notice when using my own handler, that it persists within mod_python 
between client hits. However, if more than 30 seconds expire between 
hits, mod_python seems to reload() my handler (and everything it 
imports) on the next hit.

This is a feature I'd like to be able to take advantage of, since it 
could give yet another big performance boost.

Are there any ways to control this behaviour?
For example, turning it on/off, or getting/changing the timeout value?


Kind regards


leave this line intact so your email gets through my junk mail filter

More information about the Mod_python mailing list