From b048a48b8eeb2e27be8c6cbcf1291d0e50edcbac Mon Sep 17 00:00:00 2001 From: Correl Roush Date: Wed, 22 Sep 2010 22:30:38 -0400 Subject: [PATCH] Enabled file caching --- settings.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/settings.py b/settings.py index 2b901f5..6c0cd99 100755 --- a/settings.py +++ b/settings.py @@ -73,6 +73,9 @@ MIDDLEWARE_CLASSES = ( 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', + + 'django.middleware.cache.UpdateCacheMiddleware', + 'django.middleware.cache.FetchFromCacheMiddleware', ) ROOT_URLCONF = 'mtgweb.urls' @@ -94,3 +97,5 @@ INSTALLED_APPS = ( 'django.contrib.admin', 'mtgweb.analyzer' ) + +CACHE_BACKEND = 'file:///var/tmp/django_cache'