Open rosscdh opened 9 years ago
Hi, could you try memcached backend? I believe it could be issue with in-memory caching.
Thanks @chibisov I've created a PR for a docs change: https://github.com/chibisov/drf-extensions/pull/97 appreciate the quick feedback. Switched to redis_cache and seems to work well.
Sorry this still seems to be an issue...
REST_FRAMEWORK_EXTENSIONS = {
'DEFAULT_CACHE_RESPONSE_TIMEOUT': 60 * 5
}
CACHES = {
'default': {
#'BACKEND': 'django.core.cache.backends.locmem.LocMemCache', # BUG with locmemcache for DRF-extensions dont use
'BACKEND': 'redis_cache.RedisCache',
'LOCATION': 'redis://blahblahblabh.cache.amazonaws.com/1',
}
}
does not update at all.. :(
Please, show me how you cache your views
@chibisov thanks caching like this
class PostsViewset(CacheResponseAndETAGMixin,
viewsets.ReadOnlyModelViewSet):
...
valid? or close as invalid?
Hey there, great extension! thanks for that
Having a strange issue with the response timeout never flushing. I have to restart uwsgi to get the cache flushed.
Current settings are.
As you can see I've taken the defaults but my cache never expires.
Any thoughts?