Set the database cache's to essentially never timeout.

(imported from commit f6fdbfe52536c5458130db3a907b8b8f81163fa4)
This commit is contained in:
Tim Abbott 2013-03-12 10:43:58 -04:00
parent 9920dcd22a
commit 710358db8c
1 changed files with 3 additions and 0 deletions

View File

@ -317,6 +317,9 @@ else:
CACHES['database'] = { CACHES['database'] = {
'BACKEND': 'django.core.cache.backends.db.DatabaseCache', 'BACKEND': 'django.core.cache.backends.db.DatabaseCache',
'LOCATION': 'third_party_api_results', 'LOCATION': 'third_party_api_results',
# Basically never timeout. Setting to 0 isn't guaranteed
# to work, see https://code.djangoproject.com/ticket/9595
'TIMEOUT': 2000000000,
'OPTIONS': { 'OPTIONS': {
'MAX_ENTRIES': 100000000, 'MAX_ENTRIES': 100000000,
'CULL_FREQUENCY': 10, 'CULL_FREQUENCY': 10,