django-devserver icon indicating copy to clipboard operation
django-devserver copied to clipboard

CacheSummaryModule doesn't work with multiple caches

Open mbox opened this issue 12 years ago • 1 comments

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 avatar Apr 02 '12 13:04 mbox

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

mbox avatar Apr 03 '12 09:04 mbox