Skip to content

Conversation

crolfe
Copy link

@crolfe crolfe commented Feb 8, 2019

KEY_PREFIX is currently only set/overidden in the update_cache_from_env helper function (but not in middleware.py), which would makes it possible to write to a key (e.g. in a management command) that we can never read from (e.g. in a web request).

This setting is not set inside of middleware.py, and we should not
override a standard Django setting.  By doing this, we make it possible
to generate different cache keys in one process vs another.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant