django-pylibmc: Add dependancy and use as cache backend for memcached.

This commit is contained in:
Aditya Bansal 2018-06-11 07:49:16 +05:30 committed by Tim Abbott
parent ba55d22fdb
commit 998fb038a9
5 changed files with 7 additions and 2 deletions

View File

@ -108,6 +108,9 @@ pycrypto==2.6.1
# Needed for memcached usage
pylibmc==1.5.2
# Needed for compression support in memcached via pylibmc
django-pylibmc==0.6.1
# Needed for zerver/tests/test_timestamp.py
python-dateutil==2.6.1

View File

@ -51,6 +51,7 @@ django-formtools==2.1 # via django-two-factor-auth
django-otp==0.4.1.1 # via django-two-factor-auth
django-phonenumber-field==1.3.0 # via django-two-factor-auth
django-pipeline==1.6.14
django-pylibmc==0.6.1
django-sendfile==0.3.11
django-statsd-mozilla==0.4.0
django-two-factor-auth==1.7.0

View File

@ -38,6 +38,7 @@ django-formtools==2.1 # via django-two-factor-auth
django-otp==0.4.1.1 # via django-two-factor-auth
django-phonenumber-field==1.3.0 # via django-two-factor-auth
django-pipeline==1.6.14
django-pylibmc==0.6.1
django-sendfile==0.3.11
django-statsd-mozilla==0.4.0
django-two-factor-auth==1.7.0

View File

@ -8,4 +8,4 @@ ZULIP_VERSION = "1.8.1+git"
# Typically, adding a dependency only requires a minor version bump, and
# removing a dependency requires a major version bump.
PROVISION_VERSION = '20.9'
PROVISION_VERSION = '20.10'

View File

@ -613,7 +613,7 @@ SESSION_ENGINE = "django.contrib.sessions.backends.cached_db"
CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.memcached.PyLibMCCache',
'BACKEND': 'django_pylibmc.memcached.PyLibMCCache',
'LOCATION': MEMCACHED_LOCATION,
'TIMEOUT': 3600,
'OPTIONS': {