Django middleware cache settings

13 views
Skip to first unread message

nav

unread,
Mar 8, 2016, 1:23:10 PM3/8/16
to Django users

Hi

I have a need to use memcache on a particular view/controller and wanted to know if the middleware cache settings:

'django.middleware.cache.UpdateCacheMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.cache.FetchFromCacheMiddleware',

are required if all I want to do for is just cache the response, from just a single view not the entire site.

It does not seem clear to me from the documentation here.

I hope someone can shed some light on this.

Thanks in advance.

nav

P.S. Also posted this question on StackOverflow but did not receive a response will post the reply there.

Reply all
Reply to author
Forward
0 new messages