I read the documentation as well but could not get clearing on this. Also, do we need to install anything extra for this to work? I have added below code in settings.py file :
CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.filebased.FileBasedCache',
'LOCATION': '/var/tmp/django_cache',
'TIMEOUT': 518400, # 6 days - 6*24*60*60
'OPTIONS': {
'MAX_ENTRIES': 1000
}
}
}
MIDDLEWARE_CLASSES += [
'django.middleware.cache.UpdateCacheMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.cache.FetchFromCacheMiddleware',
]