Re: import caching
"Jonathan Ellis" <[email protected]> Tue, 18 Dec 2007 11:49:19 -0800
| Newsgroups | gmane.comp.python.spyce.general |
|---|---|
| Message-ID | <[email protected]> |
On Tue, 18 Dec 2007 12:01:58 -0500, "Jason Persampieri" <[email protected]> said: > I am using Spyce with mod_python. > > Spyce seems to be caching imported Python modules. that's the python interpreter doing the caching. > Unfortunately, it > doesn't (always?) refresh the cache when the module changes. Quite often > I've had to restart apache after making a change in an imported module. spyce has a check_modules_and_restart option, which defaults to True. this makes spyce scan the python interpreter's module cache and restart the spyce process when a source file changes. unfortunately though it does not work with mod_python. it should be possible to make it work with mod_python but I have never run mod_python myself and don't intend to start. the easiest solution is to just use the built-in spyce web server for development and only use mod_python (or proxy the spyce server w/ apache, which is my preferred option) for production. -Jonathan ------------------------------------------------------------------------- SF.Net email is sponsored by: Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace