Skip to content

Commit

Permalink
Use BMemcached backend instead of PyLibMCCache
Browse files Browse the repository at this point in the history
heroku/heroku-buildpack-python#201
heroku/heroku-buildpack-python#794

Looks like Heroku have a buggy version of libmemcached which meant that
pylibmc was failing to auth there with "FAILED TO SEND AUTHENTICATION TO
SERVER".

Switching to django-bmemcached as recommended by Memcached Cloud

https://devcenter.heroku.com/articles/memcachedcloud
  • Loading branch information
doismellburning committed Apr 12, 2019
1 parent b765c7d commit 14f8893
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion emporium/emporium/settings.py
Expand Up @@ -33,7 +33,7 @@
if "MEMCACHEDCLOUD_SERVERS" in os.environ:
CACHES = {
"default": {
"BACKEND": "django.core.cache.backends.memcached.PyLibMCCache",
"BACKEND": "django_bmemcached.memcached.BMemcached",
"LOCATION": os.environ.get("MEMCACHEDCLOUD_SERVERS", "").split(","),
"OPTIONS": {
"username": os.environ.get("MEMCACHEDCLOUD_USERNAME"),
Expand Down

0 comments on commit 14f8893

Please sign in to comment.