Loading docs/cache.txt +5 −4 Original line number Diff line number Diff line Loading @@ -231,13 +231,14 @@ arguments. The per-site cache ================== **New in Django development version** (previous versions of Django only provided a single ``CacheMiddleware`` instead of the two pieces described below). **New in Django development version** (previous versions of Django only provided a single ``CacheMiddleware`` instead of the two pieces described below). Once the cache is set up, the simplest way to use caching is to cache your entire site. You'll need to add ``'django.middleware.cache.UpdateCacheMiddleware'`` and ``'django.middleware.cache.FetchFromCacheMiddleware' to your ``'django.middleware.cache.FetchFromCacheMiddleware'`` to your ``MIDDLEWARE_CLASSES`` setting, as in this example:: MIDDLEWARE_CLASSES = ( Loading Loading
docs/cache.txt +5 −4 Original line number Diff line number Diff line Loading @@ -231,13 +231,14 @@ arguments. The per-site cache ================== **New in Django development version** (previous versions of Django only provided a single ``CacheMiddleware`` instead of the two pieces described below). **New in Django development version** (previous versions of Django only provided a single ``CacheMiddleware`` instead of the two pieces described below). Once the cache is set up, the simplest way to use caching is to cache your entire site. You'll need to add ``'django.middleware.cache.UpdateCacheMiddleware'`` and ``'django.middleware.cache.FetchFromCacheMiddleware' to your ``'django.middleware.cache.FetchFromCacheMiddleware'`` to your ``MIDDLEWARE_CLASSES`` setting, as in this example:: MIDDLEWARE_CLASSES = ( Loading