Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

Diff of /Allura/allura/lib/custom_middleware.py [c4f76a] .. [9d8474] Maximize Restore

  Switch to side-by-side view

--- a/Allura/allura/lib/custom_middleware.py
+++ b/Allura/allura/lib/custom_middleware.py
@@ -8,6 +8,7 @@
 from pylons.util import call_wsgi_application
 from timermiddleware import Timer, TimerMiddleware
 from webob import exc, Request
+import pysolr
 
 from allura.lib import helpers as h
 
@@ -179,4 +180,5 @@
                 'flush', debug_each_call=False),
             Timer('template', genshi.template.Template, '_prepare', '_parse',
                 'generate'),
+            Timer('solr', pysolr.Solr, 'add', 'delete', 'search', 'commit'),
         ]