﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
2392	[patch] One more fix to r3395(CACHE_MIDDLEWARE_ANONYMOUS_ONLY)	Alex Dedul	Jacob	"Settings must be accessed as attrs. patch below.

{{{
Index: django/middleware/cache.py
===================================================================
--- django/middleware/cache.py  (revision 3405)
+++ django/middleware/cache.py  (working copy)
@@ -36,7 +36,7 @@
         if key_prefix is None:
             self.key_prefix = settings.CACHE_MIDDLEWARE_KEY_PREFIX
         if cache_anonymous_only is None:
-            self.cache_anonymous_only = settings.get('CACHE_MIDDLEWARE_ANONYMOUS_ONLY', False)
+            self.cache_anonymous_only = getattr(settings, 'CACHE_MIDDLEWARE_ANONYMOUS_ONLY', False)
         else:
             self.cache_anonymous_only = cache_anonymous_only
}}}
"	defect	closed	Core (Cache system)		normal	fixed			Unreviewed	1	0	0	0	0	0
