2009/1/16 rupert.thurner <[email protected]>: > > http://bannister.us/weblog/2007/07/23/example-of-configuring-trac-and-subversion-on-ubuntu/ > says trac's performance could be improved by: > > <Location /projects> > SetHandler mod_python > PythonHandler trac.web.modpython_frontend > PythonOption TracEnvParentDir /var/lib/trac > #PythonDebug on > ExpiresActive On > ExpiresDefault A10 > </Location> > > <LocationMatch /projects/[^/]+/chrome> > Order allow,deny > Allow from all > ExpiresDefault "now plus 12 hours" > </LocationMatch> > > does this also make sense for mod_wsgi?
He says: """Naturally it is possible to have Apache serve the static files directly, but this approach is nearly as efficient, and a lot less trouble.""" I actually wouldn't necessarily agree with that, as not sure that with mod_python Trac uses more optimal way of returning static files that might be available. In mod_wsgi, Trac will use the wsgi.file_wrapper extension which does allow more optimal serving of static files. I believe that Trac may also use wsgi.file_wrapper for downloading of attachments as well. How well wsgi.file_wrapper performs depends on the size of the files, but for occasional use as with Trac, would be more than adequate. As to whether fiddling with expiration times will help, I don't know as not familiar with what those Apache directives do and would need to do a bit of research before commenting. That is also an old page, I would be looking at whether newer versions of Trac set some sort of expiration time, or at least optionally allow it. Graham --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "modwsgi" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/modwsgi?hl=en -~----------~----~----~----~------~----~------~--~---
