I'm using Django CACHEOPS. cacheops' README
In settings.py how can I config different timeouts for different querysets?
(cache the get
queryset for 10 seconds and cache queryset fetches
for 60 seconds)
Something like this: (This obviously has duplication key error)
CACHEOPS = {
'blog.Article': {'ops': 'fetch', 'timeout': 60},
'blog.Article': {'ops': 'get', 'timeout': 10},
}
My goal is: I want to cache each article detail page longer than the article list page.