diff options
author | Ismael Carnales <icarnales@gmail.com> | 2009-11-09 22:30:40 -0200 |
---|---|---|
committer | Ismael Carnales <icarnales@gmail.com> | 2009-11-09 22:30:40 -0200 |
commit | f25a80c06bbd00240d34ea287b408bf6d770a08c (patch) | |
tree | 58eb36b2d7d3df8231e0560ae39775a209295260 /settings.py | |
parent | 5ee5e5a4202310ee2210b5edbc26fb96f5f65ce8 (diff) |
added chache middlewares and anonymous only cache setting
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 = ( |