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

CacheSummaryModule doesn't work with multiple caches #55

Open
mbox opened this issue Apr 2, 2012 · 1 comment
Open

CacheSummaryModule doesn't work with multiple caches #55

mbox opened this issue Apr 2, 2012 · 1 comment

Comments

@mbox
Copy link

mbox commented Apr 2, 2012

In Django 1.3+ you can have multiple caches. As the Cache*Modules patch django.core.cache.cache they won't track accesses to any other caches.

@mbox
Copy link
Author

mbox commented Apr 3, 2012

Having looked at this, it seems this is going to be hard to fix - other caches are accessed through django.core.cache.get_cache, but this is often accessed early in startup, before the CacheModule has a chance to go in and patch.

I'm also not sure if we can patch this successfully, as it's frequently from django.core.cache import get_cache - which gives (AFAIUI) nowhere for us to monkeypatch globally

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