Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Re-enabled caching.

  • Loading branch information...
commit 72496764376f3841c0c20ae8a6046f70896a6425 1 parent 4903728
@jacobian jacobian authored
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',
Please sign in to comment.
Something went wrong with that request. Please try again.