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

Multiple workers with Redis don't invalidate cache #69

Closed
bogdancondurache opened this issue Feb 1, 2018 · 1 comment
Closed

Multiple workers with Redis don't invalidate cache #69

bogdancondurache opened this issue Feb 1, 2018 · 1 comment

Comments

@bogdancondurache
Copy link

Hello,

After deploying Django with Daphne and Redis (asgi_redis) as in documentation, I made a Circus config to run 4 workers, Redis and Daphne. The problem is that using multiple workers, the cache is not invalidated at some times. For example I make a change in the app and start refreshing. Sometimes the change will appear, sometimes not. Also, the frontend part of the app is separate (a React app) and not using Django templates. I found no way to specify exactly when to invalidate the cache (after an action, not a number of seconds). And when I use only one worker I don't have this issue. Is this a bug or am I doing something wrong?

Versions:
asgi-redis==1.4.3
channels==1.1.8
daphne==1.4.2
Django==1.11.9

@andrewgodwin
Copy link
Member

Please don't duplicate issues across projects - I already started answering this over here: django/daphne#154, please continue discussion there if you have more information/

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

2 participants