diff options
Diffstat (limited to 'settings.py')
-rw-r--r-- | settings.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/settings.py b/settings.py index 6696fa5b..9d99af4c 100644 --- a/settings.py +++ b/settings.py @@ -44,14 +44,18 @@ TEMPLATE_LOADERS = ( ) MIDDLEWARE_CLASSES = ( + 'django.middleware.cache.UpdateCacheMiddleware', "django.contrib.sessions.middleware.SessionMiddleware", "django.contrib.auth.middleware.AuthenticationMiddleware", 'django.middleware.http.ConditionalGetMiddleware', "django.middleware.common.CommonMiddleware", "django.middleware.doc.XViewMiddleware", "archweb.main.middleware.AutoUserMiddleware", + 'django.middleware.cache.FetchFromCacheMiddleware', ) +CACHE_MIDDLEWARE_ANONYMOUS_ONLY = True + ROOT_URLCONF = 'archweb.urls' TEMPLATE_DIRS = ( |