Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Don't special case redis cache. Rely on django-cache-url config
Artur Smęte0380765bd4f
diff --git a/common.env b/common.envindex a1f1b89781..f2261ef2ba 100644--- a/common.env+++ b/common.env@@ -2,6 +2,6 @@ DATABASE_URL=postgres://saleor:saleor@db/saleorELASTICSEARCH_URL=http://search:9200OPENEXCHANGERATES_API_KEY-REDIS_URL=redis://redis:6379/0+CACHE_URL=redis://redis:6379/0REDIS_BROKER_URL=redis://redis:6379/1SECRET_KEY=changemediff --git a/docs/gettingstarted/configuration.rst b/docs/gettingstarted/configuration.rstindex 150adc1795..875438b7d0 100644--- a/docs/gettingstarted/configuration.rst+++ b/docs/gettingstarted/configuration.rst@@ -12,7 +12,7 @@ Environment variablesSeparate multiple values with comma.-``CACHE_URL`` or ``REDIS_URL``+``CACHE_URL``The URL of a cache database. Defaults to local process memory.Redis is recommended. Heroku's Redis will export this setting automatically.diff --git a/saleor/settings.py b/saleor/settings.pyindex 4d528b563e..b74926d790 100644--- a/saleor/settings.py+++ b/saleor/settings.py@@ -30,11 +30,6 @@ INTERNAL_IPS = get_list(os.environ.get('INTERNAL_IPS', '127.0.0.1'))CACHES = {'default': django_cache_url.config()}-if os.environ.get('REDIS_URL'):- CACHES['default'] = {- 'BACKEND': 'django_redis.cache.RedisCache',- 'LOCATION': os.environ.get('REDIS_URL')}-DATABASES = {'default': dj_database_url.config(default='postgres://saleor:saleor@localhost:5432/saleor',