django-devserver
django-devserver copied to clipboard
CacheSummaryModule doesn't work with multiple caches
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.
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