From 1e55b98af0c913270d2d2af5f50c26898e6f13ed Mon Sep 17 00:00:00 2001 From: scil Date: Fri, 26 Apr 2019 10:01:30 +0800 Subject: [PATCH] Update performance.rst --- CONTRIBUTORS.rst | 1 + docs/advanced_topics/performance.rst | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CONTRIBUTORS.rst b/CONTRIBUTORS.rst index 1c7ef22407..3af950a613 100644 --- a/CONTRIBUTORS.rst +++ b/CONTRIBUTORS.rst @@ -366,6 +366,7 @@ Contributors * Jason Dilworth * Deniz Dogan * Po-Chuan Hsieh +* scil Translators =========== diff --git a/docs/advanced_topics/performance.rst b/docs/advanced_topics/performance.rst index b8296fe956..cb0cf8356d 100644 --- a/docs/advanced_topics/performance.rst +++ b/docs/advanced_topics/performance.rst @@ -20,7 +20,9 @@ We recommend `Redis `_ as a fast, persistent cache. Install Re CACHES = { 'default': { 'BACKEND': 'django_redis.cache.RedisCache', - 'LOCATION': '127.0.0.1:6379', + 'LOCATION': 'redis://127.0.0.1:6379/dbname', + # for django-redis < 3.8.0, use: + # 'LOCATION': '127.0.0.1:6379', 'OPTIONS': { 'CLIENT_CLASS': 'django_redis.client.DefaultClient', }