id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc,branch,changelog,apichanges,internalchanges 10554,Cleanup when wsgi.run_once is set in trac.web.main.py,kevin.loehmann@…,,"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()) ... }}}",defect,new,normal,undecided,web frontend,0.12-stable,normal,,,osimons,,,,