Developing in Python using mod-python mod-wsgi on Apache 2.
All running fine, but if I do any change on my PY file, the changes are not propagated until I restart Apache /etc/init.d/apache2 restart.
This is annoying since I can't SSH and restart Apache service everytime in development.
Is there any way to disable Apache caching?
Thank you.
Its a very bad setting from a performance point of view, but what I do in my http.conf is set MaxRequestsPerChild to 1.  This has the effect of each apache process handles a single request before dying.  It kills throughput (so don't run benchmarks with that setting, or use it on a production site), but it has the effect of giving python a clean environment for every request.
Disable caching in Apache 2 for Python Development