Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added CacheMiddleware to djangoproject.com main settings

git-svn-id: http://code.djangoproject.com/svn/djangoproject.com@179 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 0180165ba9525b768d16bb7b71ce05e590ecd172 1 parent fbd8841
adrian authored
Showing with 10 additions and 1 deletion.
  1. +10 −1 django_website/settings/main.py
View
11 django_website/settings/main.py
@@ -19,4 +19,13 @@
MEDIA_URL = "http://www.djangoproject.com.com/m/"
# setting for documentation root path
-DJANGO_DOCUMENT_ROOT_PATH = "/home/html/djangoproject.com/docs/"
+DJANGO_DOCUMENT_ROOT_PATH = "/home/html/djangoproject.com/docs/"
+
+CACHE_MIDDLEWARE_SECONDS = 60 * 60 * 1 # 1 hour
+CACHE_MIDDLEWARE_KEY_PREFIX = 'djangoproject'
+CACHE_MIDDLEWARE_GZIP = True
+
+MIDDLEWARE_CLASSES = (
+ "django.middleware.common.CommonMiddleware",
+ "django.middleware.cache.CacheMiddleware",
+)

0 comments on commit 0180165

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