[mod_python] Mod_python & global persistence

Graham Dumpleton grahamd at dscpl.com.au
Mon Mar 7 17:13:43 EST 2005


Graham Dumpleton wrote ..
> Thus, the data assignment and code at global scope will be executed once
> per process. Each process has its own copy. The data is not shared across
> processes. You will need to use some form of external persistence if you
> want data shared between processes.

Also forgot to mention, that if auto reload is enabled, each time you modify
the code file it will reload the module and reexecute the code. This can also
give a false impression that the code is being rerun on every single request.
It would be rerun in this case, but only because a reload occurred due to the
code file change.


More information about the Mod_python mailing list