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'