Closed srtonz closed 6 years ago
You can set it to None
:
CACHEOPS = {
'module.*': {'ops': 'all', 'timeout': 60},
'module.dontcache': None,
}
BTW, what do you mean by non-django models? And how do they still have manager?
Thanks @Suor, I might have overlooked this in the docs somewhere. As for external models, a few DB connectors (django-cassandra-engine
for example) provide completely different manager classes to integrate with django.
We've used cacheops very successfully so far, but would love an option to blacklist certain models in the configuration. Something along the lines below, or maybe using a separate
CACHEOPS_EXCLUDE
setting:The reason is that in some of our larger modules we have django and non-django modules in the same
models.py
, which blows up when using themodule.*
notation. Beforedjango-cacheops 4.0
we could simply override the_install_cacheops
method on the manager, but that option has disappeared now.