Python module being reloaded for each request with django and mod_wsgi

Posted by Vishal on Stack Overflow See other posts from Stack Overflow or by Vishal
Published on 2010-06-11T18:46:55Z Indexed on 2010/06/12 7:53 UTC
Read the original article Hit count: 214

Filed under:
|
|
|

I have a variable in init of a module which get loaded from the database and takes about 15 seconds.

For django development server everything is working fine but looks like with apache2 and mod_wsgi the module is loaded with every request (taking 15 seconds).

Any idea about this behavior?

Update: I have enabled daemon mode in mod wsgi, looks like its not reloading the modules now! needs more testing and I will update.

© Stack Overflow or respective owner

Related posts about python

Related posts about django