Ajout cache
authorCyril Robert <Cyril Robert cyrilrbt@gmail.com>
Wed, 4 Aug 2010 19:11:30 +0000 (15:11 -0400)
committerCyril Robert <Cyril Robert cyrilrbt@gmail.com>
Wed, 4 Aug 2010 19:11:30 +0000 (15:11 -0400)
auf_savoirs_en_partage/settings.py

index 07863ee..644e3fb 100644 (file)
@@ -30,7 +30,9 @@ ADMIN_MEDIA_PREFIX = '/admin_media/'
 SECRET_KEY = 'k5m_cyht&ipi!nbxng9-5zc!4_q84opflhsn#d3%^3=9gm44tt'
 
 MIDDLEWARE_CLASSES = (
+    'django.middleware.cache.UpdateCacheMiddleware',
     'django.middleware.common.CommonMiddleware',
+    'django.middleware.cache.FetchFromCacheMiddleware',
     'django.contrib.sessions.middleware.SessionMiddleware',
     'django.contrib.auth.middleware.AuthenticationMiddleware',
     'django.middleware.doc.XViewMiddleware',
@@ -63,5 +65,7 @@ AUTHENTICATION_BACKENDS = (
 )
 AUTH_PASSWORD_REQUIRED = True
 
+CACHE_BACKEND = 'memcached://127.0.0.1:11211/'
+
 ROA_CUSTOM_ARGS = {'api-key': ROA_API_KEY}
 from auf_references_client.settings import *