summaryrefslogtreecommitdiff
path: root/settings.py
diff options
context:
space:
mode:
authorIsmael Carnales <icarnales@gmail.com>2009-11-09 22:30:40 -0200
committerIsmael Carnales <icarnales@gmail.com>2009-11-09 22:30:40 -0200
commitf25a80c06bbd00240d34ea287b408bf6d770a08c (patch)
tree58eb36b2d7d3df8231e0560ae39775a209295260 /settings.py
parent5ee5e5a4202310ee2210b5edbc26fb96f5f65ce8 (diff)
added chache middlewares and anonymous only cache setting
Diffstat (limited to 'settings.py')
-rw-r--r--settings.py4
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 = (