Skip to content
Browse files

Re-enabled caching.

  • Loading branch information...
1 parent 4903728 commit 72496764376f3841c0c20ae8a6046f70896a6425 @jacobian jacobian committed
Showing with 3 additions and 0 deletions.
  1. +3 −0 django_website/settings/www.py
View
3 django_website/settings/www.py
@@ -79,6 +79,9 @@
'django.contrib.flatpages.middleware.FlatpageFallbackMiddleware',
'django.contrib.redirects.middleware.RedirectFallbackMiddleware',
]
+if PRODUCTION:
+ MIDDLEWARE_CLASSES.insert(0, 'django.middleware.cache.UpdateCacheMiddleware')
+ MIDDLEWARE_CLASSES.append('django.middleware.cache.FetchFromCacheMiddleware')
TEMPLATE_LOADERS = (
'django.template.loaders.filesystem.load_template_source',

0 comments on commit 7249676

Please sign in to comment.
Something went wrong with that request. Please try again.