Skip to content

Commit

Permalink
Add RALPH_DISABLE_CACHE_FRAGMENTS env variable (#2707)
Browse files Browse the repository at this point in the history
To quick disable cache for templates on production
  • Loading branch information
ar4s authored and mkurek committed Aug 10, 2016
1 parent 9ee61a6 commit d5ab61f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/ralph/settings/prod.py
Expand Up @@ -53,3 +53,7 @@
),
},
}
if bool_from_env('RALPH_DISABLE_CACHE_FRAGMENTS', False):
CACHES['template_fragments'] = {
'BACKEND': 'django.core.cache.backends.dummy.DummyCache',
}

0 comments on commit d5ab61f

Please sign in to comment.