changeset 746:3ba1f30d1d6a

Django 1.6: CACHE_MIDDLEWARE_ANONYMOUS_ONLY deprecated.
author Brian Neal <bgneal@gmail.com>
date Sun, 29 Dec 2013 14:54:51 -0600 (2013-12-29)
parents bace7db5678c
children 9b2db523f703
files sg101/settings/production.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/sg101/settings/production.py	Sun Dec 29 14:52:23 2013 -0600
+++ b/sg101/settings/production.py	Sun Dec 29 14:54:51 2013 -0600
@@ -35,9 +35,10 @@
         'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
         'LOCATION': '127.0.0.1:11211',
         'TIMEOUT': 600,
+        'KEY_PREFIX': 'sg101',
     },
 }
-CACHE_MIDDLEWARE_ANONYMOUS_ONLY = True
+CACHE_MIDDLEWARE_ALIAS = 'default'
 CACHE_MIDDLEWARE_SECONDS = 600
 CACHE_MIDDLEWARE_KEY_PREFIX = ''