Search code examples
pythonapachemod-wsgidaemonpython-module

Reloading modules in a mod_wsgi daemon mode application


Is there a way to ensure all modules are cleared and freshly reloaded in a mod_wsgi application running in daemon mode? Is an Apache restart enough? Or does the daemon persist across restarts?

I've looked at the docs but it still isn't clear to me


Solution

  • Did you try modifying the wsgi file. For ex in unix, touch 'wsgi.script' should do.

    On the other hand restarting apache should definitely be enough.