Skip to content

Commit

Permalink
Update prod marketplace redis settings to fall back on defaults.
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonthomas committed Mar 4, 2014
1 parent e30b517 commit 03b1101
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions sites/prod/settings_mkt.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,16 @@
SYSLOG_CSP = "http_app_addons_marketplace_csp"

# Redis
REDIS_BACKEND = private_mkt.REDIS_BACKENDS_CACHE
REDIS_BACKEND = getattr(private_mkt, 'REDIS_BACKENDS_CACHE', private.REDIS_BACKENDS_CACHE)
REDIS_BACKENDS_CACHE_SLAVE = getattr(private_mkt, 'REDIS_BACKENDS_CACHE_SLAVE', private.REDIS_BACKENDS_CACHE_SLAVE)
REDIS_BACKENDS_MASTER = getattr(private_mkt, 'REDIS_BACKENDS_MASTER', private.REDIS_BACKENDS_MASTER)
REDIS_BACKENDS_SLAVE = getattr(private_mkt, 'REDIS_BACKENDS_SLAVE', private.REDIS_BACKENDS_SLAVE)

REDIS_BACKENDS = {
'cache': REDIS_BACKEND,
'cache_slave': private_mkt.REDIS_BACKENDS_CACHE_SLAVE,
'master': private_mkt.REDIS_BACKENDS_MASTER,
'slave': private_mkt.REDIS_BACKENDS_SLAVE,
'cache_slave': REDIS_BACKENDS_CACHE_SLAVE,
'master': REDIS_BACKENDS_MASTER,
'slave': REDIS_BACKENDS_SLAVE,
}

## Celery
Expand Down

0 comments on commit 03b1101

Please sign in to comment.