Cleanup when wsgi.run_once is set in trac.web.main.py
|Reported by:||Owned by:|
In trac.web.main.py line 482 says:
if env and not run_once: env.shutdown(threading._get_ident()) ...
If I get this right, it performs cleanup / shutdown although the environment is to be cached.
In our test environment I used inverted the condition and trac works much faster (approx. -1 sec. ticket loading time) and had no negative side effects (mixed up sessions, increased thread count, increased memory usage etc.) till now.
This is what I did:
if env and run_once: env.shutdown(threading._get_ident()) ...