Made the OCR cache backend used for locking configurable, move ocr locking to queued document from periodic task, added again a random delay fallback in case no cache backend is used

This commit is contained in:
Roberto Rosario
2011-05-06 15:31:49 -04:00
parent 472a55f5f3
commit 7469fe991f
4 changed files with 66 additions and 37 deletions
+1
View File
@@ -101,6 +101,7 @@ def check_settings(request):
{'name': 'OCR_REPLICATION_DELAY', 'value': ocr_settings.REPLICATION_DELAY},
{'name': 'OCR_PDFTOTEXT_PATH', 'value': ocr_settings.PDFTOTEXT_PATH, 'exists': True},
{'name': 'OCR_QUEUE_PROCESSING_INTERVAL', 'value': ocr_settings.QUEUE_PROCESSING_INTERVAL},
{'name': 'OCR_CACHE_URI', 'value': ocr_settings.CACHE_URI},
# Search
{'name': 'SEARCH_LIMIT', 'value': search_settings.LIMIT},