django-cache-manager
django-cache-manager copied to clipboard
Cache manager for django models
There are a number of test failures when running under Django 1.11. It is not clear to me on first look what has changed to cause these failures.
If a custom queryset is used by a manager, this is not available to the cache. For Django 1.10 at least, changing CacheManager.get_queryset() to: ```python def get_queryset(self): class_name = 'CustomCachingQuerySet'...
When I try this: ``` CACHES = { 'django_cache_manager.cache_backend': { 'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache', 'LOCATION': '127.0.0.1:11211', } } ``` I get this: > (caches.E001) You must define a 'default' cache in your...
1. If I changed an object, the whole cached objects related to the same table will be invalidated. 2. when we invalidate table, we just change the namespace, we will...
This one is confusing me so not sure if I'm using the right terminology here, but I have: class A(models.Model): stuff class B(A): stuff class C(models.Model): a = models.ForeignKey(A) All...
Pulled out common pattern of invalidating model cache from `mixins/models` to `helpers`.
When sharing of keys for a model using shared memory fails due to a network timeout and or cache backend failure, there should be retries for 'x' number of times