Skip to content

Remove line that sets KEY_PREFIX inside of update_cache_from_env. #27

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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