Enabled file caching
This commit is contained in:
parent
f6945e0fe7
commit
b048a48b8e
1 changed files with 5 additions and 0 deletions
|
@ -73,6 +73,9 @@ MIDDLEWARE_CLASSES = (
|
||||||
'django.middleware.csrf.CsrfViewMiddleware',
|
'django.middleware.csrf.CsrfViewMiddleware',
|
||||||
'django.contrib.auth.middleware.AuthenticationMiddleware',
|
'django.contrib.auth.middleware.AuthenticationMiddleware',
|
||||||
'django.contrib.messages.middleware.MessageMiddleware',
|
'django.contrib.messages.middleware.MessageMiddleware',
|
||||||
|
|
||||||
|
'django.middleware.cache.UpdateCacheMiddleware',
|
||||||
|
'django.middleware.cache.FetchFromCacheMiddleware',
|
||||||
)
|
)
|
||||||
|
|
||||||
ROOT_URLCONF = 'mtgweb.urls'
|
ROOT_URLCONF = 'mtgweb.urls'
|
||||||
|
@ -94,3 +97,5 @@ INSTALLED_APPS = (
|
||||||
'django.contrib.admin',
|
'django.contrib.admin',
|
||||||
'mtgweb.analyzer'
|
'mtgweb.analyzer'
|
||||||
)
|
)
|
||||||
|
|
||||||
|
CACHE_BACKEND = 'file:///var/tmp/django_cache'
|
||||||
|
|
Loading…
Reference in a new issue