allura
修訂 | fb718976ef4bf21da5358d197f957da75f0a83c3 (tree) |
---|---|
時間 | 2012-06-14 04:03:22 |
作者 | Dave Brondsema <dbrondsema@geek...> |
Commiter | Yaroslav Luzin |
[#4366] add solr to timermiddleware
@@ -8,6 +8,7 @@ from paste import fileapp | ||
8 | 8 | from pylons.util import call_wsgi_application |
9 | 9 | from timermiddleware import Timer, TimerMiddleware |
10 | 10 | from webob import exc, Request |
11 | +import pysolr | |
11 | 12 | |
12 | 13 | from allura.lib import helpers as h |
13 | 14 |
@@ -179,4 +180,5 @@ class AlluraTimerMiddleware(TimerMiddleware): | ||
179 | 180 | 'flush', debug_each_call=False), |
180 | 181 | Timer('template', genshi.template.Template, '_prepare', '_parse', |
181 | 182 | 'generate'), |
183 | + Timer('solr', pysolr.Solr, 'add', 'delete', 'search', 'commit'), | |
182 | 184 | ] |