Skip to content
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

FAQ about cache middleware not threadsafe #18

Closed
apollo13 opened this issue Dec 29, 2014 · 0 comments
Closed

FAQ about cache middleware not threadsafe #18

apollo13 opened this issue Dec 29, 2014 · 0 comments

Comments

@apollo13
Copy link
Collaborator

http://django-hosts.readthedocs.org/en/latest/faq.html#does-django-hosts-work-with-the-django-debug-toolbar suggests to override key_prefix which is an instance attribute. Since middlewares are only instantiated once per process this does not work if threads are used (ie if a context switch happens somewhen between the assignment and the actual call to process request).

@jezdez jezdez closed this as completed in d6404c1 Dec 29, 2014
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

No branches or pull requests

1 participant