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

Can not disable johnny.cache if tasks have enable call #27

Open
ghost opened this issue Jul 20, 2013 · 0 comments
Open

Can not disable johnny.cache if tasks have enable call #27

ghost opened this issue Jul 20, 2013 · 0 comments

Comments

@ghost
Copy link

ghost commented Jul 20, 2013

I have following statement at the beginning of my periodic celery task file:
from johnny.cache import enable
enable()

However, even I remove all johnny cache related settings (middleware, backend definitions etc), johnny cache was still enabled for entire project as you can guess. To disable entirely, I had to remove all enable statements.

I think proper solution would make enable() not work when JOHNNY_CACHE set to False in backend definitions (which actually don't benefit). I thought I have disable johnny cache when I did this but it was still there when I observed what was happening in memcached (can be seen using memcached -vv).

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

0 participants