Commit 864ecd85 authored by fred's avatar fred
Browse files

add cache middlewares

parent 8d15d268
...@@ -101,6 +101,7 @@ TEMPLATE_LOADERS = ( ...@@ -101,6 +101,7 @@ TEMPLATE_LOADERS = (
) )
MIDDLEWARE_CLASSES = ( MIDDLEWARE_CLASSES = (
'django.middleware.cache.UpdateCacheMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.locale.LocaleMiddleware', 'django.middleware.locale.LocaleMiddleware',
'django.middleware.common.CommonMiddleware', 'django.middleware.common.CommonMiddleware',
...@@ -110,6 +111,7 @@ MIDDLEWARE_CLASSES = ( ...@@ -110,6 +111,7 @@ MIDDLEWARE_CLASSES = (
'fiber.middleware.ObfuscateEmailAddressMiddleware', 'fiber.middleware.ObfuscateEmailAddressMiddleware',
'fiber.middleware.AdminPageMiddleware', 'fiber.middleware.AdminPageMiddleware',
#'request.middleware.RequestMiddleware', #'request.middleware.RequestMiddleware',
'django.middleware.cache.FetchFromCacheMiddleware',
) )
TEMPLATE_CONTEXT_PROCESSORS = DEFAULT_SETTINGS.TEMPLATE_CONTEXT_PROCESSORS + ( TEMPLATE_CONTEXT_PROCESSORS = DEFAULT_SETTINGS.TEMPLATE_CONTEXT_PROCESSORS + (
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment