diff options
-rw-r--r-- | gnowsys-ndf/gnowsys_ndf/settings.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gnowsys-ndf/gnowsys_ndf/settings.py b/gnowsys-ndf/gnowsys_ndf/settings.py index 5c89b67..f5337d4 100644 --- a/gnowsys-ndf/gnowsys_ndf/settings.py +++ b/gnowsys-ndf/gnowsys_ndf/settings.py @@ -328,6 +328,9 @@ MIDDLEWARE_CLASSES = ( # 'online_status.middleware.OnlineStatusMiddleware', #for online_users 'django.contrib.messages.middleware.MessageMiddleware', 'pagination.middleware.PaginationMiddleware', + + # 'django.middleware.cache.UpdateCacheMiddleware', + # 'django.middleware.cache.FetchFromCacheMiddleware', # Uncomment the next line for simple clickjacking protection: # 'django.middleware.clickjacking.XFrameOptionsMiddleware', @@ -378,6 +381,7 @@ INSTALLED_APPS = ( # 'endless_pagination', 'jsonrpc', 'registration_email', + 'memcache_admin', ) AUTHENTICATION_BACKENDS=( @@ -617,6 +621,14 @@ except: # } #} +# cache implementation with memcached and python-memcached binding: +CACHES = { + 'default': { + 'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache', + 'LOCATION': '127.0.0.1:11211', + } +} + #USER_ONLINE_TIMEOUT = 300 #USER_LASTSEEN_TIMEOUT = 60 * 60 * 24 * 7 |