diff --git a/project/settings.py b/project/settings.py index e8779ec..8a13014 100644 --- a/project/settings.py +++ b/project/settings.py @@ -344,6 +344,17 @@ THUMBNAIL_PROCESSORS = ( 'easy_thumbnails.processors.filters', ) +# cache settings +COMMON_CACHE_PREFIX = 'dokumentor_' +CMS_CACHE_PREFIX = '%scms-' % COMMON_CACHE_PREFIX + +CACHES = { + 'default': { + 'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache', + 'LOCATION': '127.0.0.1:11211', + } +} + YANDEX_MONEY_DEBUG = False YANDEX_MONEY_SCID = 84437 YANDEX_MONEY_SHOP_ID = 92585 diff --git a/requirements.txt b/requirements.txt index b063ccb..7076ec3 100644 --- a/requirements.txt +++ b/requirements.txt @@ -53,3 +53,5 @@ wsgiref==0.1.2 xlrd==0.9.2 xlutils==1.7.1 xlwt==0.7.5 + +python-memcached==1.58