diff gpp/settings.py @ 43:2763977301c2

Added support for caching. The avatar template tag now uses the cache.
author Brian Neal <bgneal@gmail.com>
date Sun, 14 Jun 2009 20:25:22 +0000
parents 48b221d304c6
children e5d078ebe870
line wrap: on
line diff
--- a/gpp/settings.py	Fri Jun 12 02:37:28 2009 +0000
+++ b/gpp/settings.py	Sun Jun 14 20:25:22 2009 +0000
@@ -134,6 +134,15 @@
 FILE_UPLOAD_PERMISSIONS = 0640
 
 #######################################################################
+# Caching
+#######################################################################
+if local_settings.USE_CACHE:
+    CACHE_BACKEND = local_settings.CACHE_BACKEND
+    #CACHE_MIDDLEWARE_SECONDS = local_settings.CACHE_MIDDLEWARE_SECONDS
+    #CACHE_MIDDLEWARE_KEY_PREFIX = local_settings.CACHE_MIDDLEWARE_KEY_PREFIX
+    #CACHE_MIDDLEWARE_ANONYMOUS_ONLY = local_settings.CACHE_MIDDLEWARE_ANONYMOUS_ONLY
+
+#######################################################################
 # Tagging Specific Settings
 #######################################################################
 FORCE_LOWERCASE_TAGS = True