Fix database cache settings for !DEPLOYED systems.

(imported from commit 0805c17a6bc5d0f1438d6fd1b1ce739d1162d09e)
This commit is contained in:
Tim Abbott 2013-03-11 14:01:21 -04:00
parent 3c6d489064
commit 967743ddab
1 changed files with 4 additions and 4 deletions

View File

@ -303,10 +303,6 @@ if DEPLOYED:
'LOCATION': '127.0.0.1:11211',
'TIMEOUT': 3600
},
'database': {
'BACKEND': 'django.core.cache.backends.db.DatabaseCache',
'LOCATION': 'third_party_api_results'
},
}
SESSION_ENGINE = "django.contrib.sessions.backends.cached_db"
else:
@ -318,6 +314,10 @@ else:
'MAX_ENTRIES': 100000
}
} }
CACHES['database'] = {
'BACKEND': 'django.core.cache.backends.db.DatabaseCache',
'LOCATION': 'third_party_api_results'
}
LOGGING = {
'version': 1,