Add a never cache decorator to the view that does the deleting (and perhaps
to the view that lists the items). Then you shouldn't have any problems and
you can still use the cache middleware.
See https://docs.djangoproject.com/en/1.6/topics/cache/
Regards,
Andréas
2014-12-19 5:07 GMT+01:00 T Kw
I have a list view where I can add or delete objects. I found that if the
cache middleware is included:
'django.middleware.cache.UpdateCacheMiddleware',
'django.middleware.cache.FetchFromCacheMiddleware'
The page doesn't operate properly. Basically deleted objects don't always
disappear.
Added
2 matches
Mail list logo